Skip to content

Commit e469006

Browse files
committed
Clear stash tabs when changing leagues
1 parent 378649b commit e469006

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

EnhancePoE/View/MainWindow.xaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,8 @@
110110
<ComboBox x:Name="LeagueComboBox"
111111
Grid.Column="0"
112112
ItemsSource="{Binding LeagueList, Mode=OneWay}"
113-
SelectedItem="{Binding Source={x:Static properties:Settings.Default}, Path=League, Mode=TwoWay}" />
113+
SelectedItem="{Binding Source={x:Static properties:Settings.Default}, Path=League, Mode=TwoWay}"
114+
SelectionChanged="OnLeagueSelectionChanged" />
114115
<Button x:Name="RefreshLeaguesButtons"
115116
Grid.Column="1"
116117
Margin="4,0,0,0"

EnhancePoE/View/MainWindow.xaml.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,11 @@ private void OnShowNumbersComboBoxSelectionChanged( object sender, SelectionChan
390390
Overlay.AmountsVisibility = Properties.Settings.Default.ShowItemAmount != 0 ? Visibility.Visible : Visibility.Hidden;
391391
}
392392

393+
private void OnLeagueSelectionChanged( object sender, SelectionChangedEventArgs e )
394+
{
395+
StashTabList.Clear();
396+
}
397+
393398
#region INotifyPropertyChanged implementation
394399
// Basically, the UI thread subscribes to this event and update the binding if the received Property Name correspond to the Binding Path element
395400
public event PropertyChangedEventHandler PropertyChanged;

0 commit comments

Comments
 (0)