From 2a8e1c75863bc84c55eadcff1f3adb42d409d180 Mon Sep 17 00:00:00 2001 From: Ricky Kresslein Date: Sun, 20 Feb 2022 19:19:45 +0100 Subject: - Distinctive development mode --- src/ui/window.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/ui/window.rs') diff --git a/src/ui/window.rs b/src/ui/window.rs index 3106306..92c8282 100644 --- a/src/ui/window.rs +++ b/src/ui/window.rs @@ -31,6 +31,7 @@ use crate::ui::FurHistoryBox; use crate::FurtheranceApplication; use crate::database; use crate::settings_manager; +use crate::config; mod imp { use super::*; @@ -155,7 +156,10 @@ impl FurtheranceWindow { let stop_time = Rc::new(RefCell::new(Local::now())); // Development mode - // self.add_css_class("devel"); + if config::PROFILE == "development" { + self.add_css_class("devel"); + } + imp.start_button.connect_clicked(clone!( @weak self as this, -- cgit 1.4.1