Skip to content

Commit

Permalink
remove initialload check
Browse files Browse the repository at this point in the history
  • Loading branch information
bluepilledgreat committed Oct 29, 2024
1 parent 5b32de8 commit 85a3534
Showing 1 changed file with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,17 @@ namespace Bloxstrap.UI.Elements.Settings.Pages
public partial class FastFlagEditorWarningPage
{
private FastFlagEditorWarningViewModel _viewModel;
private bool _initialLoad = false;

public FastFlagEditorWarningPage()
{
_viewModel = new FastFlagEditorWarningViewModel(this);
DataContext = _viewModel;
_viewModel.StartCountdown();

InitializeComponent();
}

private void Page_Loaded(object sender, RoutedEventArgs e)
{
// refresh datacontext on page load to reset timer

if (!_initialLoad)
{
_initialLoad = true;
return;
}

_viewModel.StartCountdown();
}

Expand Down

0 comments on commit 85a3534

Please sign in to comment.