Skip to content

Commit

Permalink
hide orders menu when moving ship (issue #49)
Browse files Browse the repository at this point in the history
  • Loading branch information
thindil committed Nov 7, 2019
1 parent 8e4d0e9 commit 5bf7b44
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ui/maps-ui-handlers.adb
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,9 @@ package body Maps.UI.Handlers is
StartsCombat: Boolean := False;
NewX, NewY: Integer := 0;
begin
if Is_Visible(Gtk_Widget(Get_Object(Builder, "btnboxorders"))) then
Hide(Gtk_Widget(Get_Object(Builder, "btnboxorders")));
end if;
if User_Data = Get_Object(Builder, "btnup") then -- Move up
Result := MoveShip(0, -1, Message);
elsif User_Data = Get_Object(Builder, "btnbottom") then -- Move down
Expand Down

0 comments on commit 5bf7b44

Please sign in to comment.