🔧 Support multiple apps per profile
This commit is contained in:
+5
-1
@@ -490,7 +490,11 @@ class Extension {
|
||||
// If that was the case, we also check the application name.
|
||||
if (matches && profileApp != '') {
|
||||
const app = actor.meta_window.get_wm_class().toLowerCase();
|
||||
matches = app == profileApp.toLowerCase();
|
||||
|
||||
// Split app names at |, remove any whitespace, and transform to lower case.
|
||||
const profileApps =
|
||||
profileApp.split('|').map(item => item.trim().toLowerCase());
|
||||
matches = profileApps.includes(app);
|
||||
}
|
||||
|
||||
// If the profile is still matching, we also check the color scheme.
|
||||
|
||||
Reference in New Issue
Block a user