mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-24 21:42:51 -05:00
feat: Add group workspace apps toggle (#1238)
* Add group workspace apps toggle * wording * fix pre-commit --------- Co-authored-by: bbedward <bbedward@gmail.com>
This commit is contained in:
@@ -241,7 +241,7 @@ Item {
|
||||
}
|
||||
|
||||
const keyBase = (w.app_id || w.appId || w.class || w.windowClass || "unknown");
|
||||
const key = isActiveWs ? `${keyBase}_${i}` : keyBase;
|
||||
const key = isActiveWs || !SettingsData.groupWorkspaceApps ? `${keyBase}_${i}` : keyBase;
|
||||
|
||||
if (!byApp[key]) {
|
||||
const moddedId = Paths.moddedAppId(keyBase);
|
||||
|
||||
@@ -103,6 +103,16 @@ Item {
|
||||
}
|
||||
}
|
||||
|
||||
SettingsToggleRow {
|
||||
settingKey: "groupWorkspaceApps"
|
||||
tags: ["workspace", "apps", "icons", "group", "grouped", "collapse"]
|
||||
text: I18n.tr("Group Workspace Apps")
|
||||
description: I18n.tr("Group repeated application icons in unfocused workspaces")
|
||||
checked: SettingsData.groupWorkspaceApps
|
||||
visible: SettingsData.showWorkspaceApps
|
||||
onToggled: checked => SettingsData.set("groupWorkspaceApps", checked)
|
||||
}
|
||||
|
||||
SettingsToggleRow {
|
||||
settingKey: "workspacesPerMonitor"
|
||||
tags: ["workspace", "per-monitor", "multi-monitor"]
|
||||
|
||||
Reference in New Issue
Block a user