diff --git a/shell/plugins/launcher/Launcher.qml b/shell/plugins/launcher/Launcher.qml index ad0f07f9..d7221fe1 100644 --- a/shell/plugins/launcher/Launcher.qml +++ b/shell/plugins/launcher/Launcher.qml @@ -90,6 +90,7 @@ Item { function dismiss() { root.deleteConfirmOpen = false + root.deleteEntry = null root.opened = false if (root.shell && typeof root.shell.hide === "function") root.shell.hide((root.manifest && root.manifest.id) || "omarchy.launcher") @@ -281,7 +282,7 @@ Item { var desktopId = String(entry.id || "") var name = root.entryName(entry) var command = Util.shellQuote(root.omarchyPath + "/bin/omarchy-remove-launcher-entry") + " " + Util.shellQuote(desktopId) + " " + Util.shellQuote(name) - root.cancelDelete() + root.dismiss() Quickshell.execDetached(Util.hyprExecCommand(command)) } diff --git a/test/shell.d/launcher-search-test.sh b/test/shell.d/launcher-search-test.sh index d2ebd280..74ddc652 100644 --- a/test/shell.d/launcher-search-test.sh +++ b/test/shell.d/launcher-search-test.sh @@ -76,8 +76,8 @@ assert( const confirmDeleteMatch = launcherQml.match(/function confirmDelete\(\) \{([\s\S]*?)\n \}/) assert(confirmDeleteMatch, 'launcher confirmDelete function exists') assert( - !confirmDeleteMatch[1].includes('root.dismiss()'), - 'launcher delete keeps launcher open after confirmation' + confirmDeleteMatch[1].includes('root.dismiss()'), + 'launcher delete closes launcher after confirmation' ) assert( confirmDeleteMatch[1].includes('Util.hyprExecCommand(command)'),