about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/ui/window.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ui/window.rs b/src/ui/window.rs
index dd6ae54..e535c2e 100755
--- a/src/ui/window.rs
+++ b/src/ui/window.rs
@@ -262,7 +262,10 @@ impl FurtheranceWindow {
     fn check_user_idle(&self) {
         let imp = imp::FurtheranceWindow::from_instance(self);
         // Check for user idle
-        let idle_time = self.get_idle_time().unwrap();
+        let idle_time = match self.get_idle_time() {
+            Ok(val) => val,
+            Err(_) => 1,
+        };
 
         // If user was idle and has now returned...
         if idle_time < (settings_manager::get_int("idle-time") * 60) as u64