From 02ed92ae9d1765e0ea7d12c7c0350afcab7c8347 Mon Sep 17 00:00:00 2001 From: Breadway Date: Tue, 25 Aug 2026 16:18:43 +0800 Subject: [PATCH] theme: adapt to bread-theme's ThemeWatch return type bread_theme::shell::watch() now returns an opaque ThemeWatch (it re-arms itself onto a new theme's directory when the active theme id changes, rather than staying pinned to whichever directory was active at call time) instead of a bare gio::FileMonitor. Update the stored handle's type to match. --- src/theme.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/theme.rs b/src/theme.rs index 8e3f37c..dacba3c 100644 --- a/src/theme.rs +++ b/src/theme.rs @@ -507,7 +507,11 @@ pub fn apply() { } thread_local! { - static SHELL_THEME_MONITOR: RefCell> = + // `bread_theme::shell::ThemeWatch`, not a bare `gio::FileMonitor`: the + // watch now re-arms itself onto a new theme's directory when the active + // theme id changes underneath it (see that type's doc comment), so the + // handle we keep alive is opaque, not a single fixed monitor. + static SHELL_THEME_MONITOR: RefCell> = const { RefCell::new(None) }; }