[gnome-boxes] actions-popover: Show correct favorite option



commit 9ea53aa5b03e88715025a179380dc826713323d3
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Wed Mar 4 19:21:39 2015 +0000

    actions-popover: Show correct favorite option
    
    We were showing "Add to favorites" if box was already favorite and
    viceversa.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=745617

 src/actions-popover.vala |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/actions-popover.vala b/src/actions-popover.vala
index 721b331..5fa66d6 100644
--- a/src/actions-popover.vala
+++ b/src/actions-popover.vala
@@ -38,9 +38,9 @@ private class Boxes.ActionsPopover: Gtk.Popover {
 
         // Favorite
         if (("favorite" in machine.config.categories))
-            section.append (_("Add to Favorites"), "box.favorite");
-        else
             section.append (_("Remove from Favorites"), "box.favorite");
+        else
+            section.append (_("Add to Favorites"), "box.favorite");
 
         // Pause
         section.append (_("Pause"), "box.pause");


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