Compare commits

..

No commits in common. "15cbbb1bac2d1c45a7a9d299dae5659a801632cb" and "6b6ef67122068d183755a6559ae9df4c297c98b8" have entirely different histories.

3 changed files with 5 additions and 5 deletions

View File

@ -252,12 +252,12 @@ class RootController : Controller() {
fun deleteTexture(data: Texture) { fun deleteTexture(data: Texture) {
val dialogDelete = JFXOkayCancelAlert( val dialogDelete = JFXOkayCancelAlert(
"Löschen", "Löschen",
"Textur ${data.name} wirklich löschen?", "Textur wirklich löschen?",
"-fx-button-type: RAISED; -fx-background-color: #2b7bbb; -fx-text-fill: #000000;" "-fx-button-type: RAISED; -fx-background-color: #2b7bbb; -fx-text-fill: #000000;"
) )
dialogDelete.okayAction = EventHandler { dialogDelete.okayAction = EventHandler {
con.deleteTexture(data)
mvc.removeTextureFromView(data) mvc.removeTextureFromView(data)
con.deleteTexture(data)
} }
dialogDelete.cancelAction = EventHandler { dialogDelete.cancelAction = EventHandler {
// Do nothing // Do nothing

View File

@ -329,4 +329,4 @@ class Connection(val address: InetAddress, val port: Int = 10796) : Closeable {
} }
} }
} }

View File

@ -50,11 +50,11 @@ internal data class InternalTexture(
else -> throw ConnectionInvalidJsonException() else -> throw ConnectionInvalidJsonException()
}, },
resolution = Pair(resolution[0], resolution[1]), resolution = Pair(resolution[0], resolution[1]),
addedOn = GregorianCalendar(added_on[0], added_on[1], added_on[2]), addedOn = GregorianCalendar(added_on[0], added_on[1] - 1, added_on[2]),
textureHash = Sha256(texture_hash) textureHash = Sha256(texture_hash)
) )
} catch (e: Exception) { // i Know, but no time :[] } catch (e: Exception) { // i Know, but no time :[]
throw ConnectionInvalidJsonException() throw ConnectionInvalidJsonException()
} }
} }
} }