[geary/wip/draft-management: 7/7] Hide composer save button if an error occurs opening draft mgr



commit c3ccf0c53a757bce207c9f9d64df9f8139de3c58
Author: Michael Gratton <mike vee net>
Date:   Fri Aug 2 13:31:19 2019 +1000

    Hide composer save button if an error occurs opening draft mgr
    
    See bgo 775263

 src/client/composer/composer-widget.vala | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/src/client/composer/composer-widget.vala b/src/client/composer/composer-widget.vala
index a65e5e65..bbe99190 100644
--- a/src/client/composer/composer-widget.vala
+++ b/src/client/composer/composer-widget.vala
@@ -1405,6 +1405,9 @@ public class ComposerWidget : Gtk.EventBox, Geary.BaseInterface {
         try {
             yield new_manager.open_async(editing_draft_id, internal_cancellable);
             debug("Draft manager opened");
+        } catch (GLib.Error err) {
+            this.header.save_and_close_button.hide();
+            throw err;
         } finally {
             this.draft_manager_opening = null;
         }


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