about summary refs log tree commit diff
path: root/src/ui/history_box.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/history_box.rs')
-rwxr-xr-xsrc/ui/history_box.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/ui/history_box.rs b/src/ui/history_box.rs
index 459c751..73ca077 100755
--- a/src/ui/history_box.rs
+++ b/src/ui/history_box.rs
@@ -19,7 +19,7 @@ use gtk::subclass::prelude::*;
 use gtk::{glib, CompositeTemplate};
 use glib::subclass;
 
-use crate::ui::FurTasksPage;
+use crate::ui::{FurtheranceWindow, FurTasksPage};
 use crate::FurtheranceApplication;
 use crate::database;
 use crate::config;
@@ -125,6 +125,7 @@ impl FurHistoryBox {
 
     pub fn create_tasks_page(&self) {
         let imp = imp::FurHistoryBox::from_instance(self);
+        let window = FurtheranceWindow::default();
         imp.tasks_page.clear_task_list();
         let is_saved_task: bool = match database::check_for_tasks() {
             Ok(_) => true,
@@ -134,13 +135,17 @@ impl FurHistoryBox {
             self.set_view(View::Loading);
             imp.tasks_page.build_task_list();
             self.set_view(View::Tasks);
+            window.set_height_request(300);
         } else {
             self.set_view(View::Empty);
+            window.set_height_request(390);
         }
     }
 
     pub fn empty_view(&self) {
         self.set_view(View::Empty);
+        let window = FurtheranceWindow::default();
+        window.set_height_request(390);
     }
 
 }