Skip to content

Commit

Permalink
Better default name for exporting to BDV.
Browse files Browse the repository at this point in the history
  • Loading branch information
tinevez committed Oct 16, 2024
1 parent 99f76d1 commit 3bc035a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/org/mastodon/util/BDVImagePlusExporter.java
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ public static final File export( final ImagePlus imp, final String targetPath )
final ExportMipmapInfo autoMipmapSettings = ProposeMipmaps.proposeMipmaps( new BasicViewSetup( 0, "", size, voxelSize ) );

// show dialog to get output paths, resolutions, subdivisions, min-max option
if ( lastExportPath == null )
lastExportPath = "./" + imp.getShortTitle() + ".xml";
final Parameters params = getParameters( imp.getDisplayRangeMin(), imp.getDisplayRangeMax(), autoMipmapSettings );
if ( params == null )
return null;
Expand Down Expand Up @@ -338,7 +340,7 @@ public Parameters(

static boolean lastDeflate = true;

static String lastExportPath = "./export.xml";
static String lastExportPath = null;

private static Parameters getParameters( final double impMin, final double impMax, final ExportMipmapInfo autoMipmapSettings )
{
Expand Down

0 comments on commit 3bc035a

Please sign in to comment.