Hi All,
I’d like to submit the following patch to disable dynamic context menu in task bar. For some applications that menu’s recent files and actions can be large and wide taking up a third of the screen’s real estate.
Can we add this run time configuration option to disable it?
I’d like to hear your thoughts. Maybe we can split it to two options: recent files and actions?
Thank you!
PS: The patch is versus plasma-desktop 6.2.5.
diff -r ~/projects/plasma-desktop/applets/taskmanager/package/contents/ /usr/share/plasma/plasmoids/org.kde.plasma.taskmanager/contents/
diff '--color=auto' -r /home/local/projects/plasma-desktop/applets/taskmanager/package/contents/config/main.xml /usr/share/plasma/plasmoids/org.kde.plasma.taskmanager/contents/config/main.xml
142a143,146
> <entry name="showDynamicContextMenu" type="Bool">
> <label>show dynamic context menu (recent files, ...).</label>
> <default>false</default>
> </entry>
diff '--color=auto' -r /home/local/projects/plasma-desktop/applets/taskmanager/package/contents/ui/ConfigBehavior.qml /usr/share/plasma/plasmoids/org.kde.plasma.taskmanager/contents/ui/ConfigBehavior.qml
35a36
> property alias cfg_showDynamicContextMenu: showDynamicContextMenu.checked
257a259,272
>
>
> Item {
> Kirigami.FormData.isSection: true
> }
>
> // dynamic context menu
> QQC2.CheckBox {
> id: showDynamicContextMenu
> visible: true
> text: i18nc("@option:show dynamic context menu (recent files, ...)", "show dynamic context menu (recent files, ...)")
> enabled: true
> }
>
diff '--color=auto' -r /home/local/projects/plasma-desktop/applets/taskmanager/package/contents/ui/ContextMenu.qml /usr/share/plasma/plasmoids/org.kde.plasma.taskmanager/contents/ui/ContextMenu.qml
75c75,76
< loadDynamicLaunchActions(get(atm.LauncherUrlWithoutIcon));
---
> if (Plasmoid.configuration.showDynamicContextMenu)
> loadDynamicLaunchActions(get(atm.LauncherUrlWithoutIcon));