Fix warning when quitting before config is loaded

This commit is contained in:
miruka 2021-04-09 06:07:59 -04:00
parent e36fa4eeda
commit 1d29e47818

View File

@ -98,9 +98,9 @@ ApplicationWindow {
visible: ArgumentParser.ready && ! ArgumentParser.startInTray
color: "transparent"
onClosing: {
close.accepted = ! settings.General.close_to_tray
settings.General.close_to_tray ? hide() : Qt.quit()
onClosing: if (py.ready && settings.General.close_to_tray) {
close.accepted = false
hide()
}
PythonRootBridge { id: py }