Skip to content

Commit 42efb59

Browse files
committed
add disable_save_settings_button for cli
1 parent bcad0e4 commit 42efb59

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

spikeinterface_gui/main.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,7 @@ def run_mainwindow_cli():
284284
parser.add_argument('--layout-file', help='Path to json file defining layout', default=None)
285285
parser.add_argument('--curation-file', help='Path to json file defining a curation', default=None)
286286
parser.add_argument('--settings-file', help='Path to json file specifying the settings of each view', default=None)
287+
parser.add_argument('--disable_save_settings_button', help='Disables button allowing for user to save default settings', action='store_true', default=False)
287288

288289
args = parser.parse_args(argv)
289290

@@ -331,6 +332,8 @@ def run_mainwindow_cli():
331332
else:
332333
user_settings = None
333334

335+
disable_save_settings_button = args.disable_save_settings_button
336+
334337
run_mainwindow(
335338
analyzer,
336339
mode=args.mode,
@@ -341,5 +344,6 @@ def run_mainwindow_cli():
341344
layout=args.layout_file,
342345
curation_dict=curation_data,
343346
user_settings=user_settings,
347+
disable_save_settings_button=disable_save_settings_button,
344348
)
345349

0 commit comments

Comments
 (0)