mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-28 07:22:50 -05:00
Fix settings crash
This commit is contained in:
@@ -53,6 +53,7 @@ PanelWindow {
|
|||||||
border.color: Qt.rgba(Theme.outline.r, Theme.outline.g, Theme.outline.b, 0.12)
|
border.color: Qt.rgba(Theme.outline.r, Theme.outline.g, Theme.outline.b, 0.12)
|
||||||
border.width: 1
|
border.width: 1
|
||||||
|
|
||||||
|
// Simple opacity and scale control tied directly to settingsVisible
|
||||||
opacity: settingsPopup.settingsVisible ? 1.0 : 0.0
|
opacity: settingsPopup.settingsVisible ? 1.0 : 0.0
|
||||||
scale: settingsPopup.settingsVisible ? 1.0 : 0.95
|
scale: settingsPopup.settingsVisible ? 1.0 : 0.95
|
||||||
|
|
||||||
|
|||||||
17
shell.qml
17
shell.qml
@@ -342,6 +342,23 @@ ShellRoot {
|
|||||||
SettingsPopup {
|
SettingsPopup {
|
||||||
id: settingsPopup
|
id: settingsPopup
|
||||||
settingsVisible: root.settingsVisible
|
settingsVisible: root.settingsVisible
|
||||||
|
|
||||||
|
// Use a more direct approach for two-way binding
|
||||||
|
onSettingsVisibleChanged: {
|
||||||
|
if (settingsVisible !== root.settingsVisible) {
|
||||||
|
root.settingsVisible = settingsVisible
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Also listen to root changes
|
||||||
|
Connections {
|
||||||
|
target: root
|
||||||
|
function onSettingsVisibleChanged() {
|
||||||
|
if (settingsPopup.settingsVisible !== root.settingsVisible) {
|
||||||
|
settingsPopup.settingsVisible = root.settingsVisible
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Application and clipboard components
|
// Application and clipboard components
|
||||||
|
|||||||
Reference in New Issue
Block a user