Remove vestigial references to window geometry

These weren't removed in d165cd955d
because I forgot.
This commit is contained in:
Joshua Goins
2024-09-06 04:44:26 -04:00
parent 8059c3797d
commit 1092d75f2e

View File

@@ -171,11 +171,9 @@ Kirigami.ApplicationWindow {
if (ShareHandler.text && root.connection) {
root.handleShare()
}
if (NeoChatConfig.minimizeToSystemTrayOnStartup && !Kirigami.Settings.isMobile && Controller.supportSystemTray && NeoChatConfig.systemTray) {
restoreWindowGeometryConnections.enabled = true; // To restore window size and position
} else {
const hasSystemTray = Controller.supportSystemTray && NeoChatConfig.systemTray;
if (Kirigami.Settings.isMobile || !(hasSystemTray && NeoChatConfig.minimizeToSystemTrayOnStartup)) {
visible = true;
saveWindowGeometryConnections.enabled = true;
}
}
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 {
target: root.connection