1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-08-01 19:18:28 -04:00

dankbar: fix widget registration during visibility changes

fixes #1956
This commit is contained in:
bbedward
2026-07-02 15:07:43 -04:00
parent db3615805c
commit 70fa0ec903
16 changed files with 40 additions and 8 deletions
@@ -24,6 +24,8 @@ FloatingWindow {
color: Theme.surfaceContainer
visible: false
onClosed: visible = false
FocusScope {
id: contentFocusScope
anchors.fill: parent
@@ -41,6 +41,8 @@ FloatingWindow {
color: Theme.surfaceContainer
visible: false
onClosed: close()
onVisibleChanged: {
if (visible) {
if (parentModal && "shouldHaveFocus" in parentModal) {
@@ -93,6 +93,8 @@ FloatingWindow {
color: Theme.surfaceContainer
visible: false
onClosed: visible = false
Process {
id: cheatsheetProcess
running: false
+2
View File
@@ -32,6 +32,8 @@ FloatingWindow {
color: Theme.surfaceContainer
visible: false
onClosed: hide()
onVisibleChanged: {
if (visible) {
Qt.callLater(focusContent);
@@ -92,6 +92,8 @@ FloatingWindow {
color: Theme.surfaceContainer
visible: false
onClosed: hide()
onIsCompactModeChanged: {
enableAnimations = false;
if (!isCompactMode) {
+2
View File
@@ -32,6 +32,8 @@ FloatingWindow {
color: Theme.surfaceContainer
visible: false
onClosed: hide()
function resetForm() {
nameInput.text = "";
appIdInput.text = "";
@@ -18,6 +18,8 @@ FloatingWindow {
color: Theme.surfaceContainer
visible: false
onClosed: hide()
function show(name) {
nameInput.text = name;
visible = true;