Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit e8e2be90 authored by Ivan Čukić's avatar Ivan Čukić 👁

We should not forget the launchers that are not currently shown

Summary:
The pinned launchers that are assigned to other activities
will have a -1 as the order. We should not forget them
when saving to the configuration file.

Reviewers: hein, mart

Reviewed By: hein

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D5933
parent 4122d376
......@@ -1588,6 +1588,7 @@ void TasksModel::syncLaunchers()
}
QMap<int, QString> sortedShownLaunchers;
QStringList sortedHiddenLaunchers;
foreach(const QString &launcherUrlStr, launcherList()) {
int row = -1;
......@@ -1607,6 +1608,8 @@ void TasksModel::syncLaunchers()
if (row != -1) {
sortedShownLaunchers.insert(row, launcherUrlStr);
} else {
sortedHiddenLaunchers << launcherUrlStr;
}
}
......@@ -1632,7 +1635,7 @@ void TasksModel::syncLaunchers()
}
}
setLauncherList(sortedShownLaunchers.values());
setLauncherList(sortedShownLaunchers.values() + sortedHiddenLaunchers);
d->launcherSortingDirty = false;
}
......
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