Initial commit of the Quickshell desktop suite: bar, dock, launcher, settings, Control Center, dashboard, OSD, lock screen, desktop widgets, plugin host with the vendored Noctalia/Omarchy compatibility layer, helpers, packaging, tests and phase documentation. Includes the optimization work so far: usage widgets and dashboard gauges no longer animate continuously, desktop widgets pause while covered, system controls stop flickering on background polls, dock app matching uses an indexed catalog, and workspace ghosts are created only for occupied slots. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
24 lines
739 B
QML
24 lines
739 B
QML
import QtQuick
|
|
|
|
QtObject {
|
|
id: root
|
|
|
|
// Migrate from version < 27 to version 27
|
|
// Converts settingsPanelAttachToBar boolean to settingsPanelMode string
|
|
function migrate(adapter, logger, rawJson) {
|
|
logger.i("Settings", "Migrating settings to v27");
|
|
|
|
// Check rawJson for old property (adapter doesn't expose removed properties)
|
|
if (rawJson?.ui?.settingsPanelAttachToBar !== undefined) {
|
|
if (rawJson.ui.settingsPanelAttachToBar === true) {
|
|
adapter.ui.settingsPanelMode = "attached";
|
|
} else {
|
|
adapter.ui.settingsPanelMode = "centered";
|
|
}
|
|
logger.i("Settings", "Migrated settingsPanelAttachToBar to settingsPanelMode: " + adapter.ui.settingsPanelMode);
|
|
}
|
|
|
|
return true;
|
|
}
|
|
}
|