Skip to content

Commit e25b7e5

Browse files
authored
Re-allow quick exiting always
1 parent e3d907d commit e25b7e5

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

MPF.Frontend/ViewModels/MainViewModel.cs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2181,6 +2181,8 @@ public async void StartDumping()
21812181
}
21822182
else
21832183
{
2184+
// Re-allow quick exiting
2185+
AskBeforeQuit = false;
21842186
return;
21852187
}
21862188
}
@@ -2189,7 +2191,11 @@ public async void StartDumping()
21892191
{
21902192
// Run pre-dumping validation checks
21912193
if (!ValidateBeforeDumping())
2194+
{
2195+
// Re-allow quick exiting
2196+
AskBeforeQuit = false;
21922197
return;
2198+
}
21932199

21942200
// Disable all UI elements apart from dumping button
21952201
DisableAllUIElements();
@@ -2218,6 +2224,9 @@ public async void StartDumping()
22182224
LogLn("No dumping command was run, submission information will not be gathered.");
22192225
Status = "Execution complete!";
22202226

2227+
// Re-allow quick exiting
2228+
AskBeforeQuit = false;
2229+
22212230
// Reset all UI elements
22222231
EnableAllUIElements();
22232232
return;
@@ -2244,7 +2253,7 @@ public async void StartDumping()
22442253
}
22452254
finally
22462255
{
2247-
// Reallow quick exiting
2256+
// Re-allow quick exiting
22482257
AskBeforeQuit = false;
22492258

22502259
// Reset all UI elements

0 commit comments

Comments
 (0)