[baobab/reroot-view: 29/35] Tweak the scanning page transition



commit be45f50c443fbaf221c61214540045d00f506f1b
Author: Stefano Facchini <stefano facchini gmail com>
Date:   Mon Jun 22 19:42:22 2020 +0200

    Tweak the scanning page transition

 src/baobab-window.vala | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/baobab-window.vala b/src/baobab-window.vala
index c855ddf..05ef296 100644
--- a/src/baobab-window.vala
+++ b/src/baobab-window.vala
@@ -628,6 +628,7 @@ namespace Baobab {
             } catch (Error e) {
                 var primary = _("Could not scan folder ā€œ%sā€").printf (scanner.directory.get_parse_name ());
                 message (primary, e.message, Gtk.MessageType.ERROR);
+                set_ui_state (home_page, false);
                 return;
             }
 
@@ -668,7 +669,7 @@ namespace Baobab {
 
             clear_message ();
 
-            scanning_page_timeout_id = Timeout.add (200, () => {
+            scanning_page_timeout_id = Timeout.add (500, () => {
                 scanning_page_timeout_id = 0;
                 set_ui_state (scanning_page, true);
                 return Source.REMOVE;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]