Remove vestigial references to window geometry
These weren't removed in d165cd955d
because I forgot.
This commit is contained in:
@@ -171,11 +171,9 @@ Kirigami.ApplicationWindow {
|
|||||||
if (ShareHandler.text && root.connection) {
|
if (ShareHandler.text && root.connection) {
|
||||||
root.handleShare()
|
root.handleShare()
|
||||||
}
|
}
|
||||||
if (NeoChatConfig.minimizeToSystemTrayOnStartup && !Kirigami.Settings.isMobile && Controller.supportSystemTray && NeoChatConfig.systemTray) {
|
const hasSystemTray = Controller.supportSystemTray && NeoChatConfig.systemTray;
|
||||||
restoreWindowGeometryConnections.enabled = true; // To restore window size and position
|
if (Kirigami.Settings.isMobile || !(hasSystemTray && NeoChatConfig.minimizeToSystemTrayOnStartup)) {
|
||||||
} else {
|
|
||||||
visible = true;
|
visible = true;
|
||||||
saveWindowGeometryConnections.enabled = true;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Connections {
|
Connections {
|
||||||
@@ -253,21 +251,6 @@ Kirigami.ApplicationWindow {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Connections {
|
|
||||||
id: restoreWindowGeometryConnections
|
|
||||||
enabled: false
|
|
||||||
target: root
|
|
||||||
|
|
||||||
function onVisibleChanged() {
|
|
||||||
if (!visible) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
Controller.restoreWindowGeometry(root);
|
|
||||||
restoreWindowGeometryConnections.enabled = false; // Only restore window geometry for the first time
|
|
||||||
saveWindowGeometryConnections.enabled = true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Connections {
|
Connections {
|
||||||
target: root.connection
|
target: root.connection
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user