Commit d0291cb2 authored by Devin Lin's avatar Devin Lin 🎨
Browse files

homescreens/default: Ensure application load is overridden

Fixes #206
parent 9f1b76c4
Pipeline #194977 passed with stage
in 1 minute and 7 seconds
......@@ -63,7 +63,7 @@ QHash<int, QByteArray> ApplicationListModel::roleNames() const
void ApplicationListModel::sycocaDbChanged()
{
loadApplications();
load();
}
void ApplicationListModel::windowCreated(KWayland::Client::PlasmaWindow *window)
......@@ -93,7 +93,7 @@ void ApplicationListModel::windowCreated(KWayland::Client::PlasmaWindow *window)
}
}
void ApplicationListModel::loadApplications()
void ApplicationListModel::load()
{
auto cfg = KSharedConfig::openConfig(QStringLiteral("applications-blacklistrc"));
auto blgroup = KConfigGroup(cfg, QStringLiteral("Applications"));
......
......@@ -58,7 +58,7 @@ public:
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const Q_DECL_OVERRIDE;
QHash<int, QByteArray> roleNames() const Q_DECL_OVERRIDE;
Q_INVOKABLE virtual void loadApplications();
Q_INVOKABLE virtual void load();
Q_INVOKABLE void runApplication(const QString &storageId);
Q_INVOKABLE void setMinimizedDelegate(int row, QQuickItem *delegate);
......
......@@ -33,7 +33,7 @@ public:
QString uniqueToStorageId(const QString &uniqueId) const;
void loadSettings();
Q_INVOKABLE void load();
Q_INVOKABLE void load() override;
int count();
int favoriteCount();
......
......@@ -33,7 +33,7 @@ MobileShell.HomeScreen {
property bool componentComplete: false
Component.onCompleted: {
HomeScreenLib.ApplicationListModel.loadApplications();
HomeScreenLib.ApplicationListModel.load();
HomeScreenLib.DesktopModel.load();
// ensure the gestures work immediately on load
......
Supports Markdown
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