mirror of
https://github.com/KDE/latte-dock.git
synced 2025-01-16 07:24:23 +03:00
set activities for internal separators
--the internal separators should be able to positioned always perfect comparing to the other launchers around them. Only way this could be achieved is by giving them the possibility to be applied to specific Activities... For the user to assign internal separators to specific Activities should right click them in editMode...
This commit is contained in:
parent
253eb7a8e2
commit
3359f5e829
@ -653,7 +653,7 @@ PlasmaComponents.ContextMenu {
|
||||
|
||||
text: i18n("&Pin")
|
||||
|
||||
visible: visualParent && !visualParent.isSeparator
|
||||
visible: visualParent && (!visualParent.isSeparator || (visualParent.isSeparator && root.editMode))
|
||||
// && get(atm.IsLauncher) !== true
|
||||
&& get(atm.IsStartup) !== true
|
||||
&& plasmoid.immutability !== PlasmaCore.Types.SystemImmutable
|
||||
|
@ -344,21 +344,7 @@ Item {
|
||||
}
|
||||
|
||||
function separatorExists(separator){
|
||||
if (!isSeparator(separator))
|
||||
return false;
|
||||
|
||||
var sLength = separators.length;
|
||||
|
||||
for (var i=0; i<sLength; ++i) {
|
||||
//!safety checker
|
||||
if (i>=separators.length)
|
||||
return false;
|
||||
|
||||
if (separators[i].launcherUrl.indexOf(separator)>=0)
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
return (tasksModel.launcherPosition(separator)>=0);
|
||||
}
|
||||
|
||||
//! the real index task after we take into account the separators before it
|
||||
|
Loading…
x
Reference in New Issue
Block a user