mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-24 21:42:51 -05:00
launcher v2: meta improvements
- Allow disabling each plugin from "all" mode - add IPCs for toggling specific modes - niri: overview respect size & default to apps mode - fix unicode icon handling
This commit is contained in:
@@ -79,6 +79,23 @@ Singleton {
|
||||
saveSettings();
|
||||
}
|
||||
|
||||
property var launcherPluginVisibility: ({})
|
||||
|
||||
function getPluginAllowWithoutTrigger(pluginId) {
|
||||
if (!launcherPluginVisibility[pluginId])
|
||||
return true;
|
||||
return launcherPluginVisibility[pluginId].allowWithoutTrigger !== false;
|
||||
}
|
||||
|
||||
function setPluginAllowWithoutTrigger(pluginId, allow) {
|
||||
const updated = JSON.parse(JSON.stringify(launcherPluginVisibility));
|
||||
if (!updated[pluginId])
|
||||
updated[pluginId] = {};
|
||||
updated[pluginId].allowWithoutTrigger = allow;
|
||||
launcherPluginVisibility = updated;
|
||||
saveSettings();
|
||||
}
|
||||
|
||||
property alias dankBarLeftWidgetsModel: leftWidgetsModel
|
||||
property alias dankBarCenterWidgetsModel: centerWidgetsModel
|
||||
property alias dankBarRightWidgetsModel: rightWidgetsModel
|
||||
|
||||
@@ -415,7 +415,8 @@ var SPEC = {
|
||||
|
||||
desktopWidgetGroups: { def: [] },
|
||||
|
||||
builtInPluginSettings: { def: {} }
|
||||
builtInPluginSettings: { def: {} },
|
||||
launcherPluginVisibility: { def: {} }
|
||||
};
|
||||
|
||||
function getValidKeys() {
|
||||
|
||||
Reference in New Issue
Block a user