From 37018e0eaf342a7431d69ee0c571405d610500f2 Mon Sep 17 00:00:00 2001 From: buhtz Date: Mon, 18 Sep 2023 07:38:52 +0200 Subject: [PATCH] fix: Set "show hidden files" button value before connecting it to its slot The problem was that the value/state of the button "Show hidden files" was set after it was connected to its slot. This triggered some other events in the main window that couldn't be processed correct because that main window itself was not finished with its construction yet. Solution: Set the value of that button first and then connect it to its slot. Fix:(#1536 --- CHANGES | 2 +- qt/app.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGES b/CHANGES index addfc07c6..2157bcb38 100644 --- a/CHANGES +++ b/CHANGES @@ -1,7 +1,7 @@ Back In Time Version 1.4.1-dev (development of upcoming release) -* wip +* Fix bug: GUI didn't start when show hidden files button was on (#1535). Version 1.4.0 (2023-09-14) * Project: Renamed branch "master" to "main" and started "gitflow" branching model. diff --git a/qt/app.py b/qt/app.py index 3e6f8ccda..cdb39a078 100644 --- a/qt/app.py +++ b/qt/app.py @@ -596,9 +596,9 @@ def _create_actions(self): self.act_pause_take_snapshot.setVisible(False) self.act_resume_take_snapshot.setVisible(False) self.act_stop_take_snapshot.setVisible(False) - self.act_show_hidden.toggled.connect(self.btnShowHiddenFilesToggled) self.act_show_hidden.setCheckable(True) self.act_show_hidden.setChecked(self.showHiddenFiles) + self.act_show_hidden.toggled.connect(self.btnShowHiddenFilesToggled) def _create_shortcuts_without_actions(self): """Create shortcuts that are not related to a visual element in the