Commit 9877aab2 authored by Jim Nelson's avatar Jim Nelson

Fixed graying out Revert menu item in context menu.

parent dadcf262
......@@ -28,6 +28,8 @@ public class DirectWindow : AppWindow {
layout.pack_end(current_page.get_toolbar(), false, false, 0);
add(layout);
current_page.switched_to();
}
public DirectPhotoPage get_direct_page() {
......
......@@ -87,7 +87,6 @@ public abstract class EditingHostPage : SinglePhotoPage {
Gtk.SeparatorToolItem separator = new Gtk.SeparatorToolItem();
separator.set_expand(true);
separator.set_draw(false);
toolbar.insert(separator, -1);
// previous button
......@@ -939,7 +938,7 @@ public class DirectPhotoPage : EditingHostPage {
if (get_photo() == null)
return false;
set_item_sensitive("/DirectContextMenu/ContextUndo", get_photo().has_transformations());
set_item_sensitive("/DirectContextMenu/ContextRevert", get_photo().has_transformations());
context_menu.popup(null, null, null, event.button, event.time);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment