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
pull/1/head
Michail Vourlakos 8 years ago
parent 84e390c312
commit afe0dd7514

@ -103,7 +103,9 @@ PlasmaComponents.ContextMenu {
//From Plasma 5.10 and frameworks 5.34 jumpLists and //From Plasma 5.10 and frameworks 5.34 jumpLists and
//places are supported //places are supported
if (Latte.WindowSystem.frameworksVersion >= 336384) { if (Latte.WindowSystem.frameworksVersion >= 336384
&& (typeof backend.jumpListActions === "function")
&& (typeof backend.placesActions === "function")) {
lists = [ lists = [
backend.jumpListActions(launcherUrl, menu), backend.jumpListActions(launcherUrl, menu),
backend.placesActions(launcherUrl, showAllPlaces, menu), backend.placesActions(launcherUrl, showAllPlaces, menu),

Loading…
Cancel
Save