fix #986,option to not group tasks

--give the user option to group or not
tasks of the same application by default
pull/2/head
Michail Vourlakos 7 years ago
parent d31c8eedd9
commit 83be8d9b20

@ -231,6 +231,10 @@
<default>false</default>
<label>show only windows that there is a launcher for them</label>
</entry>
<entry name="groupTasksByDefault" type="Bool">
<default>true</default>
<label>by default group same tasks</label>
</entry>
<entry name="showOnlyCurrentScreen" type="Bool">
<default>false</default>
</entry>

@ -316,6 +316,7 @@ DragDrop.DropArea {
//shadows for applets, it should be removed as the appleitems dont need it any more
property bool enableShadows: plasmoid.configuration.shadows || root.forceTransparentPanel
property bool dockIsHidden: dock ? dock.visibility.isHidden : true
property bool groupTasksByDefault: plasmoid.configuration.groupTasksByDefault
property bool dotsOnActive: plasmoid.configuration.dotsOnActive
property bool highlightWindows: plasmoid.configuration.highlightWindows
property bool reverseLinesPosition: !latteApplet && plasmoid.configuration.panelSize===100 ?

@ -171,6 +171,7 @@ Item {
property bool disableLeftSpacer: false
property bool disableRightSpacer: false
property bool dockIsHidden: latteDock ? latteDock.dockIsHidden : false
property bool groupTasksByDefault: latteDock ? latteDock.groupTasksByDefault: true
property bool highlightWindows: latteDock ? latteDock.highlightWindows: plasmoid.configuration.highlightWindows
property bool indicateAudioStreams: latteDock ? latteDock.indicateAudioStreams : plasmoid.configuration.indicateAudioStreams
property bool mouseWheelActions: latteDock ? latteDock.mouseWheelActions : true
@ -634,7 +635,7 @@ Item {
separateLaunchers: true
groupInline: false
groupMode: TaskManager.TasksModel.GroupApplications
groupMode: groupTasksByDefault ? TaskManager.TasksModel.GroupApplications : TaskManager.TasksModel.GroupDisabled
sortMode: TaskManager.TasksModel.SortManual
function updateLaunchersList(){

@ -155,6 +155,19 @@ PlasmaComponents.Page {
}
}
PlasmaComponents.CheckBox {
id: groupTasksChk
Layout.leftMargin: units.smallSpacing * 2
text: i18n("Group tasks of the same application")
checked: plasmoid.configuration.groupTasksByDefault
tooltip: i18n("By default group tasks of the same application")
visible: plasmoid.configuration.advanced
onClicked: {
plasmoid.configuration.groupTasksByDefault = checked
}
}
PlasmaComponents.CheckBox {
id: mouseWheelChk
Layout.leftMargin: units.smallSpacing * 2

Loading…
Cancel
Save