qmlformat + fix build

This commit is contained in:
quadbyte 2025-08-10 11:59:54 -04:00
parent 2ed3488453
commit 61abcddeeb
9 changed files with 140 additions and 130 deletions

View file

@ -20,11 +20,13 @@ PanelWindow {
function show() {
// Ensure only one panel is visible at a time using Settings as ephemeral store
try {
if (Settings.openPanel && Settings.openPanel !== outerPanel && Settings.openPanel.hide) {
if (Settings.openPanel && Settings.openPanel !== outerPanel
&& Settings.openPanel.hide) {
Settings.openPanel.hide()
}
Settings.openPanel = outerPanel
} catch (e) {
// ignore
}
visible = true
@ -56,13 +58,19 @@ PanelWindow {
Component.onDestruction: {
try {
if (visible && Settings.openPanel === outerPanel) Settings.openPanel = null
} catch (e) {}
if (visible && Settings.openPanel === outerPanel)
Settings.openPanel = null
} catch (e) {
}
}
onVisibleChanged: function() {
onVisibleChanged: function () {
try {
if (!visible && Settings.openPanel === outerPanel) Settings.openPanel = null
} catch (e) {}
if (!visible && Settings.openPanel === outerPanel)
Settings.openPanel = null
} catch (e) {
}
}
}