mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-10 16:01:50 -04:00
reset update if checked for updates, show dialog after eros is up
This commit is contained in:
parent
6eca3a93f1
commit
99096636a8
@ -91,11 +91,6 @@ object Eros {
|
|||||||
start()
|
start()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
MinosoftUpdater::update.observe(this, true) {
|
|
||||||
if (it == null) return@observe
|
|
||||||
if (it.id == OtherProfileManager.selected.updater.dismiss) return@observe // TODO: if not searched manually
|
|
||||||
UpdateAvailableDialog(it).show()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun askForUpdates() {
|
private fun askForUpdates() {
|
||||||
@ -121,6 +116,13 @@ object Eros {
|
|||||||
mainErosController.stage.show()
|
mainErosController.stage.show()
|
||||||
initialized = true
|
initialized = true
|
||||||
visible = true
|
visible = true
|
||||||
|
|
||||||
|
MinosoftUpdater::update.observe(this, true) {
|
||||||
|
if (it == null) return@observe
|
||||||
|
if (it.id == OtherProfileManager.selected.updater.dismiss) return@observe // TODO: if not searched manually
|
||||||
|
UpdateAvailableDialog(it).show()
|
||||||
|
}
|
||||||
|
|
||||||
askForUpdates()
|
askForUpdates()
|
||||||
Log.log(LogMessageType.JAVAFX, LogLevels.VERBOSE) { "Eros up!" }
|
Log.log(LogMessageType.JAVAFX, LogLevels.VERBOSE) { "Eros up!" }
|
||||||
}
|
}
|
||||||
|
@ -78,6 +78,7 @@ object MinosoftUpdater {
|
|||||||
|
|
||||||
validateURL(request.toURL())
|
validateURL(request.toURL())
|
||||||
val update = request(request, error)
|
val update = request(request, error)
|
||||||
|
this.update = null // clear first to "reprompt"
|
||||||
this.update = update
|
this.update = update
|
||||||
return update
|
return update
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user