[evolution] Flatpak: Show Save All button in attachment bar



commit e5dde5e0d1a8c3c5e18ed3cd4491f31e82232a17
Author: Milan Crha <mcrha redhat com>
Date:   Wed Mar 3 09:03:46 2021 +0100

    Flatpak: Show Save All button in attachment bar
    
    The GtkFileChooserNativePortal supports GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER
    for some time now, which 'Save All' button uses, thus show the button also when
    running under Flatpak.
    
    This partly reverts commit eee405f8841c0d58edb57663f8ed770d8ca38259.

 src/e-util/e-attachment-bar.c  | 2 +-
 src/e-util/e-attachment-view.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/e-util/e-attachment-bar.c b/src/e-util/e-attachment-bar.c
index 45978883db..602e3c1d7a 100644
--- a/src/e-util/e-attachment-bar.c
+++ b/src/e-util/e-attachment-bar.c
@@ -109,7 +109,7 @@ attachment_bar_update_status (EAttachmentBar *bar)
 
        activatable = GTK_ACTIVATABLE (bar->priv->save_all_button);
        action = gtk_activatable_get_related_action (activatable);
-       gtk_action_set_visible (action, (num_attachments > 1 && !e_util_is_running_flatpak ()));
+       gtk_action_set_visible (action, num_attachments > 1);
 
        activatable = GTK_ACTIVATABLE (bar->priv->save_one_button);
        action = gtk_activatable_get_related_action (activatable);
diff --git a/src/e-util/e-attachment-view.c b/src/e-util/e-attachment-view.c
index 2d54acf43d..da89238e3f 100644
--- a/src/e-util/e-attachment-view.c
+++ b/src/e-util/e-attachment-view.c
@@ -733,7 +733,7 @@ attachment_view_update_actions (EAttachmentView *view)
        gtk_action_set_visible (action, !busy && n_selected > 0);
 
        action = e_attachment_view_get_action (view, "save-as");
-       gtk_action_set_visible (action, !busy && (n_selected == 1 || (n_selected > 0 && 
!e_util_is_running_flatpak ())));
+       gtk_action_set_visible (action, !busy && n_selected > 0);
 
        /* Clear out the "openwith" action group. */
        gtk_ui_manager_remove_ui (priv->ui_manager, priv->merge_id);


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