mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2025-12-06 05:25:41 -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.width: 1
|
||||
|
||||
// Simple opacity and scale control tied directly to settingsVisible
|
||||
opacity: settingsPopup.settingsVisible ? 1.0 : 0.0
|
||||
scale: settingsPopup.settingsVisible ? 1.0 : 0.95
|
||||
|
||||
|
||||
17
shell.qml
17
shell.qml
@@ -342,6 +342,23 @@ ShellRoot {
|
||||
SettingsPopup {
|
||||
id: settingsPopup
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user