[gnome-boxes] actions-popover: Simpler condition for "Open in New Window"



commit 62587f0290655ccdb4a7fc0542038dd4eb88ba25
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Mon Apr 27 18:22:08 2015 +0100

    actions-popover: Simpler condition for "Open in New Window"
    
    Simplify the condition of whether or not to show "Open in New Window"
    option in actions menu.

 src/actions-popover.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/actions-popover.vala b/src/actions-popover.vala
index 5fa66d6..f08a2f6 100644
--- a/src/actions-popover.vala
+++ b/src/actions-popover.vala
@@ -33,7 +33,7 @@ private class Boxes.ActionsPopover: Gtk.Popover {
         var section = new GLib.Menu ();
 
         // Open in new Window
-        if (machine.window == App.app.main_window || machine.window != window)
+        if (window.ui_state != UIState.DISPLAY)
             section.append (_("Open in New Window"), "box.open-in-new-win");
 
         // Favorite


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