mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-21 18:11:27 -07:00
Fix install location warning showing twice (#438)
This commit is contained in:
parent
38b1c584d2
commit
5cf51b3311
@ -42,7 +42,7 @@ namespace Bloxstrap.UI.ViewModels.Menu
|
||||
|
||||
bool shouldCheckInstallLocation = App.IsFirstRun || App.BaseDirectory != _originalBaseDirectory;
|
||||
|
||||
if (shouldCheckInstallLocation)
|
||||
if (shouldCheckInstallLocation && NavigationVisibility == Visibility.Visible)
|
||||
{
|
||||
try
|
||||
{
|
||||
@ -96,14 +96,15 @@ namespace Bloxstrap.UI.ViewModels.Menu
|
||||
((INavigationWindow)_window).Navigate(typeof(PreInstallPage));
|
||||
|
||||
NavigationVisibility = Visibility.Collapsed;
|
||||
ConfirmButtonEnabled = false;
|
||||
|
||||
OnPropertyChanged(nameof(NavigationVisibility));
|
||||
|
||||
ConfirmButtonEnabled = false;
|
||||
OnPropertyChanged(nameof(ConfirmButtonEnabled));
|
||||
|
||||
Task.Run(async delegate
|
||||
{
|
||||
await Task.Delay(3000);
|
||||
|
||||
ConfirmButtonEnabled = true;
|
||||
OnPropertyChanged(nameof(ConfirmButtonEnabled));
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user