qmlformat + fix build
This commit is contained in:
parent
2ed3488453
commit
61abcddeeb
9 changed files with 140 additions and 130 deletions
|
|
@ -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) {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue