launcher: add config option for hiding applications (#568)
* feat(launcher): add config option for excluding applications from launcher * fix(launcher): rename excludedApps to hiddenApps * chore: add example to readme * fix --------- Co-authored-by: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>
This commit is contained in:
parent
b6b2adf056
commit
58615b809e
3 changed files with 4 additions and 2 deletions
|
|
@ -477,7 +477,8 @@ default, you must create it manually.
|
|||
"variants": false,
|
||||
"wallpapers": false
|
||||
},
|
||||
"showOnHover": false
|
||||
"showOnHover": false,
|
||||
"hiddenApps": []
|
||||
},
|
||||
"lock": {
|
||||
"recolourLogo": false
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ JsonObject {
|
|||
property bool enableDangerousActions: false // Allow actions that can cause losing data, like shutdown, reboot and logout
|
||||
property int dragThreshold: 50
|
||||
property bool vimKeybinds: false
|
||||
property list<string> hiddenApps: []
|
||||
property UseFuzzy useFuzzy: UseFuzzy {}
|
||||
property Sizes sizes: Sizes {}
|
||||
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@ Searcher {
|
|||
Variants {
|
||||
id: variants
|
||||
|
||||
model: [...DesktopEntries.applications.values].sort((a, b) => a.name.localeCompare(b.name))
|
||||
model: [...DesktopEntries.applications.values].filter(a => !Config.launcher.hiddenApps.includes(a.id)).sort((a, b) => a.name.localeCompare(b.name))
|
||||
|
||||
QtObject {
|
||||
required property DesktopEntry modelData
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue