@ -493,7 +493,7 @@ Item {
}
function hide ( debug ) {
/ / c o n s o l e . l o g ( " o n h i d e p r e v i e w s e v e n t c a l l e d : " + d e b u g ) ;
/ / c o n s o l e . l o g ( " o n h i d e p r e v i e w s e v e n t c a l l e d : " + d e b u g ) ;
if ( latteDock && signalSent ) {
/ / i t i s u s e d t o u n b l o c k d o c k h i d i n g
@ -515,7 +515,7 @@ Item {
return ;
}
/ / c o n s o l e . l o g ( " p r e v i e w s h o w c a l l e d . . . " ) ;
/ / c o n s o l e . l o g ( " p r e v i e w s h o w c a l l e d . . . " ) ;
if ( ( ! activeItem || ( activeItem !== taskItem ) ) && ! root . contextMenu ) {
/ / c o n s o l e . l o g ( " p r e v i e w s h o w c a l l e d : a c c e p t e d . . . " ) ;
@ -1078,13 +1078,15 @@ Item {
root . statesLineSize + root . zoomFactor * ( root . iconSize + root . thickMargin ) :
root . statesLineSize + root . iconSize + root . thickMargin
function urlsDroppedOnArea ( urls ) {
/ / I f a l l d r o p p e d U R L s p o i n t t o a p p l i c a t i o n d e s k t o p f i l e s , w e ' l l a d d a l a u n c h e r f o r e a c h o f t h e m .
var createLaunchers = urls . every ( function ( item ) {
function onlyLaunchersInList ( list ) {
return list . every ( function ( item ) {
return backend . isApplication ( item )
} ) ;
}
if ( createLaunchers ) {
function urlsDroppedOnArea ( urls ) {
/ / I f a l l d r o p p e d U R L s p o i n t t o a p p l i c a t i o n d e s k t o p f i l e s , w e ' l l a d d a l a u n c h e r f o r e a c h o f t h e m .
if ( onlyLaunchersInList ( urls ) ) {
urls . forEach ( function ( item ) {
addLauncher ( item ) ;
} ) ;
@ -1104,12 +1106,16 @@ Item {
}
onUrlsDropped: {
if ( latteDock && latteDock . launchersGroup >= Latte . Dock . LayoutLaunchers ) {
/ / ! i n f o r m s y n c e d d o c k s f o r n e w d r o p p e d l a u n c h e r s
if ( latteDock && latteDock . launchersGroup >= Latte . Dock . LayoutLaunchers && onlyLaunchersInList ( urls ) ) {
latteDock . universalLayoutManager . launchersSignals . urlsDropped ( root . managedLayoutName ,
latteDock . launchersGroup , urls ) ;
} else {
urlsDroppedOnArea ( urls ) ;
return ;
}
/ / ! i f t h e l i s t d o e s n o t c o n t a i n o n l y l a u n c h e r s t h e n j u s t o p e n t h e c o r r e s p o n d i n g
/ / ! u r l s w i t h t h e r e l e v a n t a p p
urlsDroppedOnArea ( urls ) ;
}
}