Use Qt.quit() when closing the window

Qt.quit() is used because KDE Plasma will minimize
to tray by default when clicking on X button
This commit is contained in:
vslg 2020-09-05 13:43:46 -03:00
parent 8a04f80602
commit a543c79c02

View File

@ -88,7 +88,7 @@ ApplicationWindow {
onClosing: { onClosing: {
close.accepted = ! settings.closeMinimizesToTray close.accepted = ! settings.closeMinimizesToTray
if (settings.closeMinimizesToTray) hide() settings.closeMinimizesToTray ? hide() : Qt.quit()
} }
PythonRootBridge { id: py } PythonRootBridge { id: py }