1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-28 15:32:50 -05:00

Fix focus issues with add widget dialog

This commit is contained in:
bbedward
2025-10-05 19:17:11 -04:00
parent 2315d423c4
commit fbbf10078f
3 changed files with 52 additions and 40 deletions

View File

@@ -8,6 +8,8 @@ import qs.Widgets
Item {
id: dankBarTab
property var parentModal: null
function getWidgetsForPopup() {
return baseWidgetDefinitions.filter(widget => {
if (widget.warning && widget.warning.includes("Plugin is disabled")) {
@@ -1159,7 +1161,7 @@ Item {
widgetSelectionPopup.allWidgets
= dankBarTab.getWidgetsForPopup()
widgetSelectionPopup.targetSection = sectionId
widgetSelectionPopup.safeOpen()
widgetSelectionPopup.show()
}
onRemoveWidget: (sectionId, widgetIndex) => {
dankBarTab.removeWidgetFromSection(
@@ -1231,7 +1233,7 @@ Item {
widgetSelectionPopup.allWidgets
= dankBarTab.getWidgetsForPopup()
widgetSelectionPopup.targetSection = sectionId
widgetSelectionPopup.safeOpen()
widgetSelectionPopup.show()
}
onRemoveWidget: (sectionId, widgetIndex) => {
dankBarTab.removeWidgetFromSection(
@@ -1303,7 +1305,7 @@ Item {
widgetSelectionPopup.allWidgets
= dankBarTab.getWidgetsForPopup()
widgetSelectionPopup.targetSection = sectionId
widgetSelectionPopup.safeOpen()
widgetSelectionPopup.show()
}
onRemoveWidget: (sectionId, widgetIndex) => {
dankBarTab.removeWidgetFromSection(
@@ -1349,7 +1351,7 @@ Item {
WidgetSelectionPopup {
id: widgetSelectionPopup
anchors.centerIn: parent
parentModal: dankBarTab.parentModal
onWidgetSelected: (widgetId, targetSection) => {
dankBarTab.addWidgetToSection(widgetId,
targetSection)