Skip to content

Commit

Permalink
Fixed visibility bug
Browse files Browse the repository at this point in the history
  • Loading branch information
slicedbread committed Aug 7, 2022
1 parent 0448feb commit 243a48d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ public SchoolCountWidget()

public void Update(ObservableCollection<Card> cards)
{
// hide if card list is empty
this.Visibility = cards.Count <= 0 ? Visibility.Hidden : Visibility.Visible;
this.ItemsSource = cards;
UpdatePosition();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ internal void GameStart()
{
_schoolsPlayed = new List<SpellSchool>();
_playedList = new ObservableCollection<Card>();
_cardListWidget.Hide();
_cardListWidget.Update(_playedList);
}

Expand Down

0 comments on commit 243a48d

Please sign in to comment.