Skip to content

Commit 84ce8d5

Browse files
authored
Update main_window.py
1 parent 4d4dd2a commit 84ce8d5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/main_window.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,6 @@ def setDialog_closed(self, w, response):
491491
# Check if the sync file has been changed or not
492492
if not self.file_row.get_subtitle() == f'{self.settings["file-for-syncing"]}':
493493
self.set_syncing()
494-
self.show_warn_toast()
495494
# Save the sync file to the GSettings database
496495
self.settings["file-for-syncing"] = self.file_row.get_subtitle()
497496
self.file_name = os.path.basename(self.settings["file-for-syncing"])
@@ -509,12 +508,16 @@ def setDialog_closed(self, w, response):
509508
import_item = "Never2"
510509
elif selected_item.get_string() == _["daily"]:
511510
import_item = "Daily2"
511+
self.show_warn_toast()
512512
elif selected_item.get_string() == _["weekly"]:
513513
import_item = "Weekly2"
514+
self.show_warn_toast()
514515
elif selected_item.get_string() == _["monthly"]:
515516
import_item = "Monthly2"
517+
self.show_warn_toast()
516518
elif selected_item.get_string() == _["manually"]:
517519
import_item = "Manually2"
520+
self.show_warn_toast()
518521
with open(f"{self.folder}/file-settings.json", "w") as f:
519522
f.write('{\n "file-name": "%s.gz",\n "periodic-import": "%s"\n}' % (self.file, import_item))
520523
self.settings["periodic-import"] = import_item

0 commit comments

Comments
 (0)