Skip to content

Commit

Permalink
fixed performance issues with adding/removing cards to/from a deck...…
Browse files Browse the repository at this point in the history
… I don't.. what the...
  • Loading branch information
epix37 committed Feb 9, 2015
1 parent a311696 commit e36144e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Hearthstone Deck Tracker/MainWindow/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
<Grid>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Name="TopRow" Height="0" />
<RowDefinition Height="30"/>
<RowDefinition Height="*" />
</Grid.RowDefinitions>
Expand Down
3 changes: 2 additions & 1 deletion Hearthstone Deck Tracker/MainWindow/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,7 @@ private async void UpdateAsync()
if(_currentNewsId > oldNewsId
|| StatusBarNews.Visibility == Visibility.Collapsed && _currentNewsId > Config.Instance.IgnoreNewsId)
{
TopRow.Height = new GridLength(20);
StatusBarNews.Visibility = Visibility.Visible;
UpdateNews(0);
}
Expand Down Expand Up @@ -1317,7 +1318,7 @@ private void BtnCloseNews_OnClick(object sender, RoutedEventArgs e)
Config.Instance.IgnoreNewsId = _currentNewsId;
Config.Save();
StatusBarNews.Visibility = Visibility.Collapsed;
;
TopRow.Height = new GridLength(0);
}

private async void MenuItemHearthStatsForceFullSync_OnClick(object sender, RoutedEventArgs e)
Expand Down

0 comments on commit e36144e

Please sign in to comment.