mirror of
https://github.com/haven1433/HexManiacAdvance.git
synced 2026-05-20 12:18:04 -05:00
close color picker popup when window moves
This commit is contained in:
parent
be7c4cc033
commit
c859c2ba76
|
|
@ -100,6 +100,7 @@ namespace HavenSoft.HexManiac.WPF.Controls {
|
|||
swatchPopup.IsOpen = false;
|
||||
swatch.ResultChanged -= SwatchResultChanged;
|
||||
Application.Current.MainWindow.Deactivated -= AppClosePopup;
|
||||
Application.Current.MainWindow.LocationChanged -= AppClosePopup;
|
||||
}
|
||||
public void SingleSelect() => ViewModel?.SingleSelect();
|
||||
|
||||
|
|
@ -160,6 +161,7 @@ namespace HavenSoft.HexManiac.WPF.Controls {
|
|||
if (swatchPopup.IsOpen) {
|
||||
swatch.ResultChanged += SwatchResultChanged;
|
||||
Application.Current.MainWindow.Deactivated += AppClosePopup;
|
||||
Application.Current.MainWindow.LocationChanged += AppClosePopup;
|
||||
commitTextboxChanges = true;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user