Skip to content

Commit

Permalink
Improved code readability
Browse files Browse the repository at this point in the history
  • Loading branch information
luizzeroxis committed Aug 22, 2024
1 parent 22e6de2 commit 520482e
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions UndertaleModTool/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -784,15 +784,8 @@ private async void DataWindow_Closing(object sender, CancelEventArgs e)

if (result == MessageBoxResult.Yes)
{
if (scriptDialog is not null)
{
if (this.ShowQuestion("Script still runs. Save anyway?\nIt can corrupt the data file that you'll save.") == MessageBoxResult.Yes)
save = true;
}
else
{
if (scriptDialog is null || (this.ShowQuestion("Script still runs. Save anyway?\nIt can corrupt the data file that you'll save.") == MessageBoxResult.Yes))
save = true;
}
}
}

Expand Down

0 comments on commit 520482e

Please sign in to comment.