mirror of
https://github.com/KDE/latte-dock.git
synced 2025-03-21 10:50:30 +03:00
fix Justify Splitters behavior
--because of new introduced functionality from MaxLength Splitters broke. This commits fixes their behavior
This commit is contained in:
parent
e775da4a41
commit
764f7d06b6
@ -114,7 +114,7 @@ MouseArea {
|
||||
}
|
||||
}
|
||||
|
||||
if (root.dragOverlay.currentApplet && !currentApplet.isInternalViewSplitter) {
|
||||
if (root.dragOverlay.currentApplet) {
|
||||
hideTimer.stop();
|
||||
|
||||
tooltip.visible = true;
|
||||
@ -401,18 +401,19 @@ MouseArea {
|
||||
location: plasmoid.location
|
||||
|
||||
onVisualParentChanged: {
|
||||
if (visualParent && currentApplet && currentApplet.applet && currentApplet !== ruler) {
|
||||
configureButton.visible = (currentApplet.applet.pluginName !== root.plasmoidName)
|
||||
if (visualParent && currentApplet && currentApplet !== ruler
|
||||
&& (currentApplet.applet || currentApplet.isSeparator || currentApplet.isInternalViewSplitter)) {
|
||||
|
||||
configureButton.visible = !currentApplet.isInternalViewSplitter && (currentApplet.applet.pluginName !== root.plasmoidName)
|
||||
&& currentApplet.applet.action("configure") && currentApplet.applet.action("configure").enabled;
|
||||
closeButton.visible = currentApplet.applet.action("remove") && currentApplet.applet.action("remove").enabled
|
||||
closeButton.visible = !currentApplet.isInternalViewSplitter && currentApplet.applet.action("remove") && currentApplet.applet.action("remove").enabled
|
||||
&& !(currentApplet.applet.pluginName===root.plasmoidName && dock && dock.docksWithTasks()===1 && dock.tasksPresent());
|
||||
lockButton.visible = (currentApplet.applet.pluginName !== "org.kde.plasma.systemtray")
|
||||
lockButton.visible = !currentApplet.isInternalViewSplitter && (currentApplet.applet.pluginName !== "org.kde.plasma.systemtray")
|
||||
&& (currentApplet.applet.pluginName !== "org.kde.latte.spacer")
|
||||
&& (currentApplet.applet.pluginName !== root.plasmoidName)
|
||||
&& !currentApplet.isSeparator
|
||||
&& !currentApplet.isInternalViewSplitter
|
||||
|
||||
label.text = currentApplet.applet.title;
|
||||
label.text = currentApplet.isInternalViewSplitter ? i18n("Justify Splitter") : currentApplet.applet.title;
|
||||
} else {
|
||||
if (currentApplet === ruler) {
|
||||
configureButton.visible = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user