Skip to content

Commit b066299

Browse files
committed
Fix saved state for web import
1 parent 57c35d0 commit b066299

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

tools/idea-plugin/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
### Fixed
2020

2121
- Fix an incorrect error message when the user cancels the save dialog during export
22+
- [Web Import] Fix state restoration when hiding and reopening the plugin
2223

2324
## 1.2.0 - 2026-02-20
2425

tools/idea-plugin/src/main/kotlin/io/github/composegears/valkyrie/ui/screen/webimport/standard/StandardIconViewModel.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ class StandardIconViewModel(
4545

4646
init {
4747
when (val initialState = stateRecord.value) {
48-
is StandardState.Success if initialState.fontByteArray == null -> downloadFont()
48+
is StandardState.Success -> if (initialState.fontByteArray == null) {
49+
downloadFont()
50+
}
4951
else -> loadConfig()
5052
}
5153
}

0 commit comments

Comments
 (0)