mirror of
https://github.com/KDE/latte-dock.git
synced 2025-03-21 10:50:30 +03:00
fix #471,check in plasma 5.10 functions exist
--we check not only the plasma frameworks version but if jumplists and places functions exist also
This commit is contained in:
parent
84e390c312
commit
afe0dd7514
@ -103,7 +103,9 @@ PlasmaComponents.ContextMenu {
|
||||
|
||||
//From Plasma 5.10 and frameworks 5.34 jumpLists and
|
||||
//places are supported
|
||||
if (Latte.WindowSystem.frameworksVersion >= 336384) {
|
||||
if (Latte.WindowSystem.frameworksVersion >= 336384
|
||||
&& (typeof backend.jumpListActions === "function")
|
||||
&& (typeof backend.placesActions === "function")) {
|
||||
lists = [
|
||||
backend.jumpListActions(launcherUrl, menu),
|
||||
backend.placesActions(launcherUrl, showAllPlaces, menu),
|
||||
|
Loading…
x
Reference in New Issue
Block a user