Profiles editing and selecting
This commit is contained in:
@@ -36,6 +36,8 @@ import java.util.logging.Level
|
||||
*/
|
||||
open class DefaultGameRepository(var baseDirectory: File): GameRepository {
|
||||
protected val versions: MutableMap<String, Version> = TreeMap<String, Version>()
|
||||
var isLoaded: Boolean = false
|
||||
protected set
|
||||
|
||||
override fun hasVersion(id: String) = versions.containsKey(id)
|
||||
override fun getVersion(id: String): Version {
|
||||
@@ -135,7 +137,7 @@ open class DefaultGameRepository(var baseDirectory: File): GameRepository {
|
||||
versions[id] = version
|
||||
EVENT_BUS.fireEvent(LoadedOneVersionEvent(this, id))
|
||||
}
|
||||
|
||||
isLoaded = true
|
||||
}
|
||||
|
||||
@Synchronized
|
||||
|
||||
@@ -21,6 +21,9 @@ import javafx.beans.property.*
|
||||
import javafx.beans.value.ChangeListener
|
||||
import javafx.beans.value.ObservableValue
|
||||
|
||||
/**
|
||||
* Any operation of properties should run on JavaFX thread.
|
||||
*/
|
||||
open class ImmediateStringProperty(bean: Any, name: String, initialValue: String): SimpleStringProperty(bean, name, initialValue) {
|
||||
|
||||
override fun set(newValue: String) {
|
||||
|
||||
Reference in New Issue
Block a user