Changed theme switching, probably fixes #509 as well
This commit is contained in:
@@ -221,19 +221,12 @@ class ElectrumWindow(QMainWindow):
|
||||
|
||||
actuator = lite_window.MiniActuator(self)
|
||||
|
||||
# Should probably not modify the current path but instead
|
||||
# change the behaviour of rsrc(...)
|
||||
old_path = QDir.currentPath()
|
||||
actuator.load_theme()
|
||||
|
||||
self.mini = lite_window.MiniWindow(actuator, self.go_full, self.config)
|
||||
|
||||
driver = lite_window.MiniDriver(self, self.mini)
|
||||
|
||||
# Reset path back to original value now that loading the GUI
|
||||
# is completed.
|
||||
QDir.setCurrent(old_path)
|
||||
|
||||
if self.config.get('lite_mode') is True:
|
||||
self.go_lite()
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user