From 9f9ac2b47c86630d4864f9748ca0c3a1b18caff1 Mon Sep 17 00:00:00 2001 From: Ricky Kresslein Date: Sat, 11 Jun 2022 08:02:04 +0300 Subject: Export CSV disabled if no tasks --- src/ui/history_box.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/ui/history_box.rs') diff --git a/src/ui/history_box.rs b/src/ui/history_box.rs index 445d796..87631b0 100755 --- a/src/ui/history_box.rs +++ b/src/ui/history_box.rs @@ -93,6 +93,7 @@ impl FurHistoryBox { let imp = imp::FurHistoryBox::from_instance(self); let app = FurtheranceApplication::default(); app.delete_enabled(false); + app.export_csv_enabled(false); imp.spinner.set_spinning(false); let name = match view { @@ -103,6 +104,7 @@ impl FurHistoryBox { View::Empty => "empty", View::Tasks => { app.delete_enabled(true); + app.export_csv_enabled(true); "tasks" } }; -- cgit 1.4.1