1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-03-09 00:58:15 +03:00

small fixes here and there

This commit is contained in:
Michail Vourlakos 2020-05-23 01:58:17 +03:00
parent d04c19dacf
commit aba7aeab80
3 changed files with 8 additions and 2 deletions

View File

@ -72,7 +72,11 @@ Item {
readonly property int version: LatteCore.Environment.makeVersion(0,9,4)
property bool addLaunchersMessage: false
property bool addLaunchersInTaskManager: plasmoid.configuration.addLaunchersInTaskManager && latteView && (latteView.extendedInterface.latteTasksModel.count === 1)
property bool addLaunchersInTaskManager: plasmoid.configuration.addLaunchersInTaskManager
&& latteView
&& (latteView.extendedInterface.latteTasksModel.count === 1)
&& (latteView.extendedInterface.plasmaTasksModel.count === 0)
property bool backgroundOnlyOnMaximized: plasmoid.configuration.backgroundOnlyOnMaximized
property bool behaveAsPlasmaPanel: {
if (!LatteCore.WindowSystem.compositingActive) {

View File

@ -650,7 +650,8 @@ FocusScope {
Layout.fillWidth: true
text: i18n("Remove")
iconSource: "delete"
visible: latteView.layout.viewsCount > 1
enabled: latteView.layout.viewsCount > 1
opacity: enabled ? 1 : 0
tooltip: i18n("Remove current dock")
onClicked: latteView.removeView()

View File

@ -141,6 +141,7 @@ PlasmaComponents.Page {
checked: plasmoid.configuration.addLaunchersInTaskManager
tooltip: i18n("Launchers are added only in the taskmanager and not as plasma applets")
enabled: latteView.extendedInterface.latteTasksModel.count === 1
&& latteView.extendedInterface.plasmaTasksModel.count === 0
onClicked: {
plasmoid.configuration.addLaunchersInTaskManager = checked;