eros: crash screen: hide all other windows

This commit is contained in:
Bixilon 2021-07-30 12:47:08 +02:00
parent 69ffca6d62
commit ba57efa4be
No known key found for this signature in database
GPG Key ID: 5CAD791931B09AC4

View File

@ -36,6 +36,7 @@ import javafx.scene.control.TextArea
import javafx.scene.text.TextFlow
import javafx.stage.Modality
import javafx.stage.Stage
import javafx.stage.Window
import java.io.File
import java.io.FileOutputStream
import java.lang.management.ManagementFactory
@ -117,6 +118,10 @@ class ErosCrashReport : JavaFXWindowController() {
// Kill some stuff
tryCatch(executor = { DefaultThreadPool.shutdownNow() })
for (window in Window.getWindows()) {
Platform.runLater { window.hide() }
}
val details = createCrashText(this)
var crashReportPath: String?