mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-24 21:42:51 -05:00
fixing spotify app id in top levels
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
import QtQuick
|
||||
pragma Singleton
|
||||
|
||||
QtObject {
|
||||
import Quickshell
|
||||
import QtQuick
|
||||
|
||||
Singleton {
|
||||
id: modalManager
|
||||
|
||||
signal closeAllModalsExcept(var excludedModal)
|
||||
|
||||
@@ -45,4 +45,11 @@ Singleton {
|
||||
function copy(from: url, to: url): void {
|
||||
Quickshell.execDetached(["cp", strip(from), strip(to)])
|
||||
}
|
||||
|
||||
// ! Spotify and maybe some other apps report the wrong app id in toplevels, hardcode special case
|
||||
function moddedAppId(appId: string): string {
|
||||
if (appId === "Spotify")
|
||||
return "spotify-launcher"
|
||||
return appId
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user