Commit 55eabda7 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇

[Kickoff / Kicker] Move "Add to favorites" entry to the bottom of the context menu

Otherwise draws attention away from jump list actions and other more frequently used actions.
This got changed with the introduction of per-activity favorites.

Differential Revision: https://phabricator.kde.org/D9474
parent d0ec1b6f
......@@ -28,9 +28,9 @@ function fillActionMenu(actionMenu, actionList, favoriteModel, favoriteId) {
if (actions) {
if (actionList && actionList.length > 0) {
var separator = { "type": "separator" };
actionList.unshift(separator);
actionList.push(separator);
// actionList = actions.concat(actionList); // this crashes Qt O.o
actionList.unshift.apply(actionList, actions);
actionList.push.apply(actionList, actions);
} else {
actionList = actions;
}
......
......@@ -28,9 +28,9 @@ function fillActionMenu(actionMenu, actionList, favoriteModel, favoriteId) {
if (actions) {
if (actionList && actionList.length > 0) {
var separator = { "type": "separator" };
actionList.unshift(separator);
actionList.push(separator);
// actionList = actions.concat(actionList); // this crashes Qt O.o
actionList.unshift.apply(actionList, actions);
actionList.push.apply(actionList, actions);
} else {
actionList = actions;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment