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>
30 lines
842 B
QML
30 lines
842 B
QML
import QtQuick
|
|
|
|
QtObject {
|
|
id: root
|
|
|
|
function migrate(adapter, logger, rawJson) {
|
|
logger.i("Migration43", "Migrating recursiveSearch to viewMode");
|
|
|
|
const wallpaper = rawJson?.wallpaper;
|
|
if (!wallpaper) {
|
|
logger.d("Migration43", "No wallpaper section found, skipping migration");
|
|
return true;
|
|
}
|
|
|
|
// Check if already migrated (has viewMode)
|
|
if (wallpaper.viewMode !== undefined) {
|
|
logger.d("Migration43", "Already has viewMode, skipping migration");
|
|
return true;
|
|
}
|
|
|
|
// Migrate recursiveSearch to viewMode
|
|
const oldValue = wallpaper.recursiveSearch ?? false;
|
|
const newValue = oldValue ? "recursive" : "single";
|
|
adapter.wallpaper.viewMode = newValue;
|
|
logger.i("Migration43", "Migrated recursiveSearch=" + oldValue + " to viewMode=" + newValue);
|
|
|
|
return true;
|
|
}
|
|
}
|