diff --git a/client/src/main/kotlin/org/hso/texturesyncclient/controller/RootController.kt b/client/src/main/kotlin/org/hso/texturesyncclient/controller/RootController.kt index bb219dd..7013843 100644 --- a/client/src/main/kotlin/org/hso/texturesyncclient/controller/RootController.kt +++ b/client/src/main/kotlin/org/hso/texturesyncclient/controller/RootController.kt @@ -20,15 +20,14 @@ import org.hso.texturesyncclient.view.startupView.StartupViewController import tornadofx.Controller import tornadofx.find import tornadofx.observable -import java.net.InetAddress -import java.util.Calendar import java.io.File -import javax.imageio.ImageIO -import java.util.UUID -import java.nio.file.Files import java.io.FileOutputStream import java.io.IOException +import java.net.InetAddress +import java.nio.file.Files import java.text.SimpleDateFormat +import java.util.* +import javax.imageio.ImageIO class RootController : Controller() { @@ -262,7 +261,11 @@ class RootController : Controller() { selectedTextureModel.data.textureHash ) try { - con.updateTexture(selectedTextureModel.data, newTexture, con.getTextureFile(selectedTextureModel.data.textureHash)) + con.updateTexture( + selectedTextureModel.data, + newTexture, + con.getTextureFile(selectedTextureModel.data.textureHash) + ) selectedTextureModel.setTexture(newTexture) selectedTextureModel.data = newTexture } catch (e: Exception) { @@ -281,7 +284,7 @@ class RootController : Controller() { * set the last selected texture-GUIModell * @param model the last selected element */ - fun setSelectedTexture(model: GUIModel){ + fun setSelectedTexture(model: GUIModel) { selectedTextureModel = model }