mirror of
https://github.com/KDE/latte-dock.git
synced 2025-01-11 13:18:13 +03:00
fix #323,TaskManagerBackend groupDialog
--TaskManagerBackend requires a groupDialog setting otherwise it crashes. This patch sets one just in order not to crash TaskManagerBackend
This commit is contained in:
parent
083754e9e6
commit
efac3453a7
@ -446,15 +446,29 @@ Item {
|
||||
}
|
||||
}
|
||||
|
||||
//! TaskManagerBackend required a groupDialog setting otherwise it crashes. This patch
|
||||
//! sets one just in order not to crash TaskManagerBackend
|
||||
PlasmaCore.Dialog {
|
||||
//ghost group Dialog to not crash TaskManagerBackend
|
||||
id: groupDialog
|
||||
visible: false
|
||||
|
||||
type: PlasmaCore.Dialog.PopupMenu
|
||||
flags: Qt.WindowStaysOnTopHint
|
||||
hideOnWindowDeactivate: true
|
||||
location: plasmoid.location
|
||||
}
|
||||
|
||||
TaskManagerApplet.Backend {
|
||||
id: backend
|
||||
|
||||
taskManagerItem: root
|
||||
toolTipItem: toolTipDelegate
|
||||
groupDialog: groupDialog
|
||||
//! there is a conflict between preview windows and highlight effect, it creates
|
||||
//! a crash when both are activated during hovering. So we enable in each case
|
||||
//! only one of both
|
||||
highlightWindows: root.highlightWindows && !root.showPreviews
|
||||
highlightWindows: root.highlightWindows
|
||||
|
||||
onAddLauncher: {
|
||||
tasksModel.requestAddLauncher(url);
|
||||
|
@ -108,7 +108,6 @@ PlasmaComponents.Page {
|
||||
Layout.leftMargin: units.smallSpacing * 2
|
||||
text: i18n("Preview windows on hovering")
|
||||
checked: plasmoid.configuration.showToolTips
|
||||
enabled: !highlightWindowsChk.checked
|
||||
|
||||
onClicked: {
|
||||
plasmoid.configuration.showToolTips = checked
|
||||
@ -120,7 +119,6 @@ PlasmaComponents.Page {
|
||||
Layout.leftMargin: units.smallSpacing * 2
|
||||
text: i18n("Highlight windows on hovering")
|
||||
checked: plasmoid.configuration.highlightWindows
|
||||
enabled: !showPreviewsChk.checked
|
||||
|
||||
onClicked: {
|
||||
plasmoid.configuration.highlightWindows = checked
|
||||
|
Loading…
Reference in New Issue
Block a user