Skip to content

Commit 9cfd13f

Browse files
committed
feat: Move icon button to contect menu
1 parent f091aa9 commit 9cfd13f

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

VNGod/View/MainWindow.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
<cv:NullToBool x:Key="nullToBoolConverter"/>
1616
<ContextMenu x:Key="gameItemContextMenu">
1717
<MenuItem Name="ignoreGameItem" Header="{x:Static strings:Strings.IgnoreGame}" Click="IgnoreGameItem_Click"/>
18+
<MenuItem x:Name="getIconButton" Header="{x:Static strings:Strings.GetIcon}" Click="GetIconButton_Click"/>
1819
</ContextMenu>
1920
</Window.Resources>
2021
<Grid>
@@ -64,9 +65,8 @@
6465
<TextBlock TextAlignment="Center" Margin="0,10" Text="{x:Static strings:Strings.GlobalOptions}"/>
6566
<Button x:Name="rescanButton" Content="{x:Static strings:Strings.RescanGames}" Margin="5" Click="RescanButton_Click"/>
6667
<Button x:Name="refreshInfoButton" Content="{x:Static strings:Strings.RefreshInfo}" Margin="5" Click="RefreshInfoButton_Click"/>
67-
<Button x:Name="getIconButton" Content="{x:Static strings:Strings.GetIcon}" Margin="5" Click="GetIconButton_Click"/>
68-
<Button x:Name="settingsButton" Content="{x:Static strings:Strings.Settings}" Margin="5" Click="SettingsButton_Click"/>
6968
<Button x:Name="repoButton" Content="{x:Static strings:Strings.OpenRepo}" Margin="5" Click="RepoButton_Click"/>
69+
<Button x:Name="settingsButton" Content="{x:Static strings:Strings.Settings}" Margin="5" Click="SettingsButton_Click"/>
7070
</StackPanel>
7171
<StackPanel hc:FlexPanel.FlexShrink="0">
7272
<TextBlock TextAlignment="Center" Margin="0,10" Text="{x:Static strings:Strings.GameOptions}"/>

VNGod/View/MainWindow.xaml.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,9 +323,9 @@ private void IgnoreGameItem_Click(object sender, RoutedEventArgs e)
323323
}
324324
private void GetIconButton_Click(object sender, RoutedEventArgs e)
325325
{
326-
getIconButton.IsEnabled = false;
326+
gameList.IsEnabled = false;
327327
IconHelper.GetIcons(GetRepo());
328-
getIconButton.IsEnabled = true;
328+
gameList.IsEnabled = true;
329329
}
330330
}
331331
}

0 commit comments

Comments
 (0)