Fix warning when quitting before config is loaded
This commit is contained in:
parent
e36fa4eeda
commit
1d29e47818
|
@ -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 }
|
||||
|
|
Loading…
Reference in New Issue
Block a user