From 5029f77bebca0889e37d8e87c1482eb5eca40eaf Mon Sep 17 00:00:00 2001 From: Gautham Date: Wed, 15 May 2024 13:48:56 -0500 Subject: [PATCH] disable shortcuts macro for now --- macros/ShoeComp.ijm | 2 +- macros/StartupMacros.fiji.ijm | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/macros/ShoeComp.ijm b/macros/ShoeComp.ijm index 2cfd05a..d9babf9 100644 --- a/macros/ShoeComp.ijm +++ b/macros/ShoeComp.ijm @@ -4,7 +4,7 @@ -eval("js", "IJ.getInstance().setVisible(false)"); +eval("js", "if(IJ.getInstance().isVisible()) IJ.getInstance().setVisible(false);"); diff --git a/macros/StartupMacros.fiji.ijm b/macros/StartupMacros.fiji.ijm index 12408ca..f321349 100644 --- a/macros/StartupMacros.fiji.ijm +++ b/macros/StartupMacros.fiji.ijm @@ -5,6 +5,7 @@ macro "AutoRun" { // hide ImageJ window at startup eval("js", "IJ.getInstance().setLocation(0, 0)"); + eval("js", "if(IJ.getInstance().isVisible()) IJ.getInstance().setVisible(false);"); run("Action Bar","/macros/ShoeComp.ijm"); - run("Install...", "/macros/ShoeComp_Shortcuts.ijm"); + // run("Install...", "/macros/ShoeComp_Shortcuts.ijm"); }