mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-06-06 03:55:02 +00:00
Merge branch 'main' of https://github.com/noctalia-dev/noctalia-shell
This commit is contained in:
@@ -355,21 +355,6 @@ Item {
|
||||
|
||||
// Execute pending callback if any
|
||||
if (pendingCallback) {
|
||||
// Verify we have a NFullScreenWindow for this screen
|
||||
var monitors = Settings.data.bar.monitors || []
|
||||
if (!(monitors.length === 0 || monitors.includes(detectedScreen.name))) {
|
||||
// Fall back to first enabled screen as we can NOT show a panel on a screen without a Bar/NFullScreenWindow
|
||||
if (monitors.length === 0 && Quickshell.screens.length > 0) {
|
||||
detectedScreen = Quickshell.screens[0]
|
||||
} else {
|
||||
for (var i = 0; i < Quickshell.screens.length; i++) {
|
||||
if (monitors.includes(Quickshell.screens[i].name)) {
|
||||
detectedScreen = Quickshell.screens[i]
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Logger.d("IPC", "Executing pending IPC callback on screen:", detectedScreen.name)
|
||||
pendingCallback(detectedScreen)
|
||||
pendingCallback = null
|
||||
|
||||
@@ -24,6 +24,7 @@ Singleton {
|
||||
property bool wlsunsetAvailable: false
|
||||
property bool app2unitAvailable: false
|
||||
property bool codeAvailable: false
|
||||
property bool gnomeCalendarAvailable: false
|
||||
|
||||
// Discord client auto-detection
|
||||
property var availableDiscordClients: []
|
||||
@@ -109,7 +110,8 @@ Singleton {
|
||||
"app2unitAvailable": ["which", "app2unit"],
|
||||
"gpuScreenRecorderAvailable": ["sh", "-c", "command -v gpu-screen-recorder >/dev/null 2>&1 || (command -v flatpak >/dev/null 2>&1 && flatpak list --app | grep -q 'com.dec05eba.gpu_screen_recorder')"],
|
||||
"wlsunsetAvailable": ["which", "wlsunset"],
|
||||
"codeAvailable": ["which", "code"]
|
||||
"codeAvailable": ["which", "code"],
|
||||
"gnomeCalendarAvailable": ["which", "gnome-calendar"]
|
||||
})
|
||||
|
||||
// Internal tracking
|
||||
|
||||
Reference in New Issue
Block a user