diff options
| author | Gabriel Schneider <[email protected]> | 2026-10-01 02:37:39 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-10-01 02:37:39 -0300 |
| commit | 6c0e9c5a6b6d4b0aa77f084fdac5eb4f6d1f482b (patch) | |
| tree | 7567624fe00948134ab5ee59f6cd081872318bce /src/pardes.zig | |
| parent | 803f2a2678a8aa8f89b0663a84a60721d36f5831 (diff) | |
| download | pardes-6c0e9c5a6b6d4b0aa77f084fdac5eb4f6d1f482b.tar.gz pardes-6c0e9c5a6b6d4b0aa77f084fdac5eb4f6d1f482b.zip | |
A ThemeFile that fails to load changes nothing: /ctl and DumpConfig keep naming the file last loaded, or none, so they always replay
The request's path was taken as the theme file before the host had
read it, so a file not found or not ZON left /ctl saying ThemeFile
<that path>, and writing the report back failed again. The path a load
succeeds with is now kept apart; a failure puts the request back to it
(and watches it again), or to none.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'src/pardes.zig')
| -rw-r--r-- | src/pardes.zig | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pardes.zig b/src/pardes.zig index 5d0ab7e8..945fcafa 100644 --- a/src/pardes.zig +++ b/src/pardes.zig @@ -4351,6 +4351,9 @@ pub const Pardes = struct { /// bodyChrome's: the theme it was worked out for, and it. body_chrome: ?struct { theme: Theme, chrome: ChromeTheme } = null, theme_file_path: config.Runtime.Text(limits.host_path_cap) = .{}, + /// The ThemeFile last loaded whole: what /ctl and DumpConfig name, and + /// what a failed ThemeFile goes back to (colors.revertThemeFile). + theme_file_loaded: config.Runtime.Text(limits.host_path_cap) = .{}, theme_file_generation: u32 = 0, theme_file_pane: u8 = 0, chrome_animation: colors.ChromeAnimation = colors.ChromeAnimation.init(colors.initial_chrome), |
