diff options
| author | Danilo M. <danix@danix.xyz> | 2026-09-11 18:48:06 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-09-11 18:48:06 +0200 |
| commit | d72b4bd6a39236093eed24d8b20f8e4d455c1fd3 (patch) | |
| tree | faba13bc1fc8c9bbde05b003abe1ceab5b84ec11 /appearance/Udt.qml | |
| parent | 1b252e32d93e1e0207d2a69ee3445e1dbf6505ae (diff) | |
| download | quickshell-d72b4bd6a39236093eed24d8b20f8e4d455c1fd3.tar.gz quickshell-d72b4bd6a39236093eed24d8b20f8e4d455c1fd3.zip | |
fix(appearance): rescan schemes and wallpapers on open
Both scans ran once at startup. This shell is autostarted, so that is
once per session: a scheme or a wallpaper added afterwards never
appeared, and restarting the shell was the only way to see it. Six
schemes added during a session were invisible for exactly this reason.
Opening the panel now refreshes both. Verified by adding a palette pair
to a running shell and watching it appear, with its colours resolved,
after the refresh.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01G7NRsGyF9jGfPYS4zPqpN7
Diffstat (limited to 'appearance/Udt.qml')
| -rw-r--r-- | appearance/Udt.qml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/appearance/Udt.qml b/appearance/Udt.qml index 30ae285..81e6427 100644 --- a/appearance/Udt.qml +++ b/appearance/Udt.qml @@ -71,6 +71,14 @@ Singleton { // The scheme list comes from the palette directory rather than the comment // in roles.conf: adding a scheme is adding two files, and this then needs // no edit at all. + // Rescanned whenever the panel opens: adding a scheme is adding two + // files, and a shell that has been running since before they appeared + // would otherwise keep showing the old list. + function refresh() { + listProc.running = false; + listProc.running = true; + } + Process { id: listProc running: true |
