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