Home
Phabricator
Search
Log In
Paste
P662
Masterwork From Distant Lands
Active
Public
Actions
Authored by
davidedmundson
on Jan 22 2021, 11:07 AM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Subscribers
None
diff --git a/processcore/application_data_model.cpp b/processcore/application_data_model.cpp
index 52c2c44..2d75837 100644
--- a/processcore/application_data_model.cpp
+++ b/processcore/application_data_model.cpp
@@ -37,5 +37,5 @@ bool ApplicationDataModel::filterAcceptsCGroup(const QString &id)
// this class is all temporary. In the future as per https://systemd.io/DESKTOP_ENVIRONMENTS/
// all apps will have a managed by a drop-in that puts apps in the app.slice
// when this happens adjust the root above and drop this filterAcceptsCGroup line
- return id.contains(QLatin1String("/app")) || (id.contains(QLatin1String("/flatpak")) && id.endsWith(QLatin1String("scope")));
+ return id.contains(QLatin1String("/app-")) || (id.contains(QLatin1String("/flatpak")) && id.endsWith(QLatin1String("scope")));
}
diff --git a/processcore/cgroup_data_model.cpp b/processcore/cgroup_data_model.cpp
index 75f55f9..3471dfa 100644
--- a/processcore/cgroup_data_model.cpp
+++ b/processcore/cgroup_data_model.cpp
@@ -369,7 +369,7 @@ void CGroupDataModel::setRoot(const QString &root)
d->m_root = root;
d->m_rootGroup.reset(new CGroup(root));
emit rootChanged();
- update();
+ QMetaObject::invokeMethod(this, [this] {update();}, Qt::QueuedConnection);
}
void CGroupDataModel::update()
davidedmundson
edited the content of this paste.
(Show Details)
Jan 22 2021, 11:07 AM
davidedmundson
changed the title of this paste from untitled to
Masterwork From Distant Lands
.
Log In to Comment