Stop the Noctalia compat settings upgrade from spinning the main loop
upgradeSettings() waited for BarWidgetRegistry by re-queuing itself with Qt.callLater. The registry is an empty stand-in in glassMxrph, so whenever noctalia-compat/settings.json already existed the wait never ended and the shell pinned a CPU core. The upgrade would also have pruned every bar, Control Center and desktop widget entry against those empty registries, so it is no longer called. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
5a10469efe
commit
4fa0c2c042
1 file changed
+5
-1
@@ -141,7 +141,11 @@ Singleton {
|
||||
root.isLoaded = true;
|
||||
root.settingsLoaded();
|
||||
|
||||
upgradeSettings();
|
||||
// glassMxrph: no upgradeSettings(). It prunes bar, Control Center and
|
||||
// desktop widgets against Noctalia's registries, which are empty
|
||||
// stand-ins here, and it waited for BarWidgetRegistry by re-queuing
|
||||
// itself with Qt.callLater, which never ends: a busy main loop that
|
||||
// pinned a CPU core whenever this settings file already existed.
|
||||
} else {
|
||||
Logger.d("Settings", "Settings reloaded from external file change");
|
||||
root.settingsReloaded();
|
||||
|
||||
Reference in new issue
Block a user