Skip to content

Commit

Permalink
Added the possibility to close scan popup (Leo-Corporation#429)
Browse files Browse the repository at this point in the history
  • Loading branch information
lpeyr committed Nov 5, 2023
1 parent 5bbd0e2 commit cea4a28
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Gavilya/ViewModels/GameEditionViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@ public GameEditionViewModel(Game game, GameList games, List<Tag> tags, MainViewM
ProcessHelpCommand = new RelayCommand(ShowProcessHelp);
DropCommand = new RelayCommand(ExecuteDrop);
ScanCommand = new RelayCommand(Scan);
CloseExeSelectorCommand = new RelayCommand((o) => IsExeSelectorOpen = false);

// Load properties
Name = game.Name;
Expand Down Expand Up @@ -333,6 +334,7 @@ public GameEditionViewModel(GameType gameType, GameList games, List<Tag> tags, M
ProcessHelpCommand = new RelayCommand(ShowProcessHelp);
DropCommand = new RelayCommand(ExecuteDrop);
ScanCommand = new RelayCommand(Scan);
CloseExeSelectorCommand = new RelayCommand((o) => IsExeSelectorOpen = false);

SelectedTags = new();

Expand Down
2 changes: 1 addition & 1 deletion Gavilya/Views/GameEditionView.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@
Padding="5"
HorizontalAlignment="Center"
Background="{DynamicResource Background2}"
Command="{Binding ScanCommand}"
Command="{Binding CloseExeSelectorCommand}"
Content="{x:Static lang:Resources.Close}"
Cursor="Hand"
FontWeight="Bold"
Expand Down

0 comments on commit cea4a28

Please sign in to comment.