Commit 6779cfc8 authored by Michael Moon's avatar Michael Moon Committed by Nate Graham
Browse files

[applets/taskmanager] Add option to avoid popping out hidden panel

This option controls whether a hidden panel will become visible when
this Task Manager receives a "needs attention" status for one of its
apps or tasks.

BUG: 394119
FIXED-IN: 5.22
parent 7d38bd36
......@@ -22,6 +22,10 @@
<label>Whether to show only window tasks that are minmized.</label>
<entry name="unhideOnAttention" type="Bool">
<label>Whether to unhide if a window wants attention.</label>
<entry name="groupingStrategy" type="Enum">
<label>How tasks are grouped: 0 = Do Not Group, 1 = By Program Name</label>
......@@ -43,6 +43,7 @@ Item {
property alias cfg_showOnlyCurrentActivity: showOnlyCurrentActivity.checked
property alias cfg_showOnlyMinimized: showOnlyMinimized.checked
property alias cfg_minimizeActiveTaskOnClick: minimizeActive.checked
property alias cfg_unhideOnAttention: unhideOnAttention.checked
TaskManagerApplet.Backend {
id: backend
......@@ -196,5 +197,15 @@ Item {
id: showOnlyMinimized
text: i18n("That are minimized")
Item {
Kirigami.FormData.isSection: true
CheckBox {
id: unhideOnAttention
Kirigami.FormData.label: i18n("Panel Hiding:")
text: i18n("Unhide when a window wants attention")
......@@ -326,7 +326,7 @@ MouseArea {
Binding {
target: plasmoid
property: "status"
value: (tasksModel.anyTaskDemandsAttention
value: (tasksModel.anyTaskDemandsAttention && plasmoid.configuration.unhideOnAttention
? PlasmaCore.Types.NeedsAttentionStatus : PlasmaCore.Types.PassiveStatus)
restoreMode: Binding.RestoreBinding
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment