watch rework
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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>>;
|
||||
|
||||
@@ -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 ()) {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user