No need to track open popups anymore. Avoid widgets to include services directly

This commit is contained in:
ItsLemmy
2025-11-08 22:37:19 -05:00
parent 373398236a
commit 8b7ec73fdf
10 changed files with 1 additions and 73 deletions
@@ -25,19 +25,12 @@ Popup {
anchors.centerIn: parent
onOpened: {
// Mark this popup has opened in the PanelService
PanelService.willOpenPopup(root)
// Load settings when popup opens with data
if (widgetData && widgetId) {
loadWidgetSettings()
}
}
onClosed: {
PanelService.willClosePopup(root)
}
background: Rectangle {
id: bgRect
@@ -23,16 +23,11 @@ Popup {
anchors.centerIn: parent
onOpened: {
PanelService.willOpenPopup(root)
if (widgetData && widgetId) {
loadWidgetSettings()
}
}
onClosed: {
PanelService.willClosePopup(root)
}
background: Rectangle {
color: Color.mSurface
radius: Style.radiusL
+1 -1
View File
@@ -12,7 +12,7 @@ SmartPanel {
id: root
preferredWidth: Math.round(820 * Style.uiScaleRatio)
preferredHeight: Math.round(900 * Style.uiScaleRatio)
preferredHeight: Math.round(910 * Style.uiScaleRatio)
readonly property bool attachToBar: Settings.data.ui.settingsPanelAttachToBar
readonly property string barPosition: Settings.data.bar.position