summaryrefslogtreecommitdiffstats
path: root/src/tabview.rs
diff options
context:
space:
mode:
authorrabite <rabite@posteo.de>2019-04-03 15:35:29 +0200
committerrabite <rabite@posteo.de>2019-04-03 15:35:29 +0200
commit10d9a5462cd3c64ce8a1e3e6f724fb1528cc99ce (patch)
treef6acef7291ffcdacc88b2086bb590964041d18eb /src/tabview.rs
parent8bfc707a596c45ce134a427d8c800620042ba78c (diff)
configurable hidden files/animation
Diffstat (limited to 'src/tabview.rs')
-rw-r--r--src/tabview.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/tabview.rs b/src/tabview.rs
index 4563332..f3fe9bc 100644
--- a/src/tabview.rs
+++ b/src/tabview.rs
@@ -26,6 +26,9 @@ pub trait Tabbable {
}
}
fn on_refresh(&mut self) -> HResult<()> { Ok(()) }
+ fn on_config_loaded(&mut self) -> HResult<()> { Ok(()) }
+
+
}
@@ -108,6 +111,10 @@ impl<T> Widget for TabView<T> where T: Widget, TabView<T>: Tabbable {
Ok(&mut self.core)
}
+ fn config_loaded(&mut self) -> HResult<()> {
+ self.on_config_loaded()
+ }
+
fn set_coordinates(&mut self, coordinates: &Coordinates) -> HResult<()> {
self.core.coordinates = coordinates.clone();
for widget in &mut self.widgets {