Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions shell/services/AppLibrary.qml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,8 @@ Item {
property int launchSerial: 0
property int launchToplevelCount: 0
property var launchActiveToplevel: null
// True while the launch OSD is on screen. It outlives the launch that opened
// it: the OSD shows with duration 0, so only closeLaunchFeedback() takes it
// down.
// True while the launch OSD is on screen. Dismissed when the target toplevel
// appears, on launchTimeout, or when the OSD duration expires.
property bool launchOsdOpen: false
property string launchOsdMessage: ""

Expand Down Expand Up @@ -242,13 +241,13 @@ Item {
onTriggered: {
if (root.toplevelCount() > root.launchToplevelCount || ToplevelManager.activeToplevel !== root.launchActiveToplevel) return
root.launchOsdOpen = true
Quickshell.execDetached(["omarchy-shell", "osd", "show", JSON.stringify({ icon: "󱓞", message: root.launchOsdMessage, duration: 0 })])
Quickshell.execDetached(["omarchy-shell", "osd", "show", JSON.stringify({ icon: "󱓞", message: root.launchOsdMessage, duration: 3500 })])
}
}

Timer {
id: launchTimeout
interval: 15000
interval: 5000
onTriggered: root.closeLaunchFeedback(root.launchSerial)
}

Expand Down