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
|
visible: ArgumentParser.ready && ! ArgumentParser.startInTray
|
||||||
color: "transparent"
|
color: "transparent"
|
||||||
|
|
||||||
onClosing: {
|
onClosing: if (py.ready && settings.General.close_to_tray) {
|
||||||
close.accepted = ! settings.General.close_to_tray
|
close.accepted = false
|
||||||
settings.General.close_to_tray ? hide() : Qt.quit()
|
hide()
|
||||||
}
|
}
|
||||||
|
|
||||||
PythonRootBridge { id: py }
|
PythonRootBridge { id: py }
|
||||||
|
Loading…
Reference in New Issue
Block a user