Hide Saving Replay popup when no output is produced (fixes #420)

I.e. if the had Auto-Recording disabled and never pressed start, there won't be
any replays and it would just be the Done button, which is pointless.
This commit is contained in:
Jonas Herzig
2020-11-22 16:04:14 +01:00
parent c3c59ec1c0
commit 673964ea6a
2 changed files with 23 additions and 0 deletions

View File

@@ -53,6 +53,10 @@ public class MarkerProcessor {
}
}
public static boolean producesAnyOutput(ReplayFile replayFile) throws IOException {
return !getOutputSuffixes(replayFile).isEmpty();
}
private enum OutputState {
/** A new output file has begun but not data has been written yet. */
NotYetWriting,