Fix "fix #46"
This commit is contained in:
parent
a10e2aceb6
commit
730a0ab383
|
@ -49,9 +49,7 @@ class ImportViewController : Controller() {
|
||||||
fun btnImportAction() {
|
fun btnImportAction() {
|
||||||
rootc.importTexture(iv.tfFilePath.text, iv.tfName.text, iv.cvTags.chips)
|
rootc.importTexture(iv.tfFilePath.text, iv.tfName.text, iv.cvTags.chips)
|
||||||
RootController.switchImportToMain()
|
RootController.switchImportToMain()
|
||||||
iv.tfFilePath.clear()
|
reset()
|
||||||
iv.tfName.clear()
|
|
||||||
iv.cvTags.chips.clear()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fun validateImport() {
|
fun validateImport() {
|
||||||
|
@ -61,8 +59,13 @@ class ImportViewController : Controller() {
|
||||||
|
|
||||||
fun btnBackAction() {
|
fun btnBackAction() {
|
||||||
RootController.switchImportToMain()
|
RootController.switchImportToMain()
|
||||||
|
reset()
|
||||||
|
}
|
||||||
|
|
||||||
|
fun reset() {
|
||||||
iv.tfFilePath.clear()
|
iv.tfFilePath.clear()
|
||||||
iv.tfName.clear()
|
iv.tfName.clear()
|
||||||
iv.cvTags.chips.clear()
|
iv.cvTags.chips.clear()
|
||||||
|
iv.preview.root.isVisible = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue