Skip to content

Commit deef4eb

Browse files
committed
Fix: Disable "Load Profile" whilst AutoSplit is running
1 parent db4cd7d commit deef4eb

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎src/AutoSplit.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1020,6 +1020,7 @@ def gui_changes_on_start(self):
10201020
self.start_auto_splitter_button.setText("Running...")
10211021
self.split_image_folder_button.setEnabled(False)
10221022
self.reload_start_image_button.setEnabled(False)
1023+
self.action_load_profile.setEnabled(False)
10231024
self.previous_image_button.setEnabled(True)
10241025
self.next_image_button.setEnabled(True)
10251026

@@ -1050,6 +1051,7 @@ def gui_changes_on_reset(self, *, safe_to_reload_start_image: bool = False):
10501051
self.table_reset_image_threshold_label.setText("-")
10511052
self.split_image_folder_button.setEnabled(True)
10521053
self.reload_start_image_button.setEnabled(True)
1054+
self.action_load_profile.setEnabled(True)
10531055
self.previous_image_button.setEnabled(False)
10541056
self.next_image_button.setEnabled(False)
10551057

‎src/user_profile.py‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,9 +202,7 @@ def load_settings(autosplit: AutoSplit, from_path: str = ""):
202202
return
203203

204204
autosplit.last_successfully_loaded_settings_file_path = load_settings_file_path
205-
# TODO: Should this check be in `__load_start_image` ?
206-
if not autosplit.is_running:
207-
autosplit.reload_start_image_signal.emit(False, True)
205+
autosplit.reload_start_image_signal.emit(False, True)
208206

209207

210208
def load_settings_on_open(autosplit: AutoSplit):

0 commit comments

Comments
 (0)