We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cd9795f commit 1b74c4eCopy full SHA for 1b74c4e
1 file changed
src/imcflibs/imagej/misc.py
@@ -16,6 +16,9 @@
16
from . import bioformats as bf
17
from . import prefs
18
19
+from org.scijava.widget import WidgetStyle
20
+from org.scijava.widget import TextWidget
21
+
22
23
def show_status(msg):
24
"""Update the ImageJ status bar and issue a log message.
@@ -746,9 +749,8 @@ def save_script_parameters(destination, save_file_name="script_parameters.txt"):
746
749
if any(skip in key.upper() for skip in skip_keys):
747
750
continue
748
751
- # Skip if parameter is declared with style="password"
- style = item.getWidgetStyle()
- if style is not None and style.lower() == "password":
752
+ # Skip if parameter is declared with password style
753
+ if WidgetStyle.isStyle(item, TextWidget.PASSWORD_STYLE):
754
755
756
if inputs.containsKey(key):
0 commit comments