[dconf-editor] Update bookmarks actions states more often.
- From: Arnaud B. <arnaudb src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [dconf-editor] Update bookmarks actions states more often.
 
- Date: Wed, 28 Nov 2018 20:26:29 +0000 (UTC)
 
commit 508f1489f1d98b825f90cec012c16940a071099f
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Mon Nov 26 10:23:26 2018 +0100
    Update bookmarks actions states more often.
 editor/bookmarks.vala | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/editor/bookmarks.vala b/editor/bookmarks.vala
index 7600920..c6465ce 100644
--- a/editor/bookmarks.vala
+++ b/editor/bookmarks.vala
@@ -169,10 +169,8 @@ private class Bookmarks : MenuButton
     [GtkCallback]
     private void on_selection_changed ()
     {
-        string? visible_child_name = edit_mode_stack.get_visible_child_name ();         // TODO edit_mode_on 
private boolean
-        if (visible_child_name == null || (!) visible_child_name == "edit-mode-off")
-            return;
-        update_actions ();
+        if (actions_init_done)
+            update_actions ();
     }
 
     /*\
@@ -312,8 +310,6 @@ private class Bookmarks : MenuButton
     {
         edit_mode_state_action.set_state (true);
 
-        update_actions ();
-
         edit_mode_stack.set_visible_child_name ("edit-mode-on");
         bookmarks_list.enter_edit_mode ();
     }
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]