watch rework

This commit is contained in:
galister
2026-01-08 01:06:54 +09:00
parent 89e8d606a8
commit 4d1154cdcb
25 changed files with 376 additions and 730 deletions

View File

@@ -166,7 +166,7 @@ pub struct GeneralConfig {
pub double_cursor_fix: bool,
#[serde(default = "def_false")]
pub single_set_mode: bool,
pub sets_on_watch: bool,
#[serde(default = "def_false")]
pub hide_grab_help: bool,

View File

@@ -16,6 +16,7 @@ pub trait DashInterface<T> {
fn recenter_playspace(&mut self, data: &mut T) -> anyhow::Result<()>;
fn desktop_finder<'a>(&'a mut self, data: &'a mut T) -> &'a mut DesktopFinder;
fn general_config<'a>(&'a mut self, data: &'a mut T) -> &'a mut GeneralConfig;
fn config_changed(&mut self, data: &mut T);
}
pub type BoxDashInterface<T> = Box<dyn DashInterface<T>>;

View File

@@ -178,4 +178,6 @@ impl DashInterface<()> for DashInterfaceEmulated {
fn general_config<'a>(&'a mut self, _: &'a mut ()) -> &'a mut crate::config::GeneralConfig {
&mut self.general_config
}
fn config_changed(&mut self, _: &mut ()) {}
}