Skip to content

Commit

Permalink
Fixed blank document state restore issue
Browse files Browse the repository at this point in the history
  • Loading branch information
pratikksahu committed Sep 27, 2023
1 parent 0bac546 commit d7b1ae3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class HorizontalVueReaderState(
it.importJob?.cancel()
val resource =
it.file?.let { file ->
if (it.vueResource is VueResourceType.BlankDocument)
if (it.vueResource is VueResourceType.BlankDocument && !it.isDocumentModified)
VueResourceType.BlankDocument(file.toUri())
else
VueResourceType.Local(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class VerticalVueReaderState(
it.importJob?.cancel()
val resource =
it.file?.let { file ->
if (it.vueResource is VueResourceType.BlankDocument)
if (it.vueResource is VueResourceType.BlankDocument && !it.isDocumentModified)
VueResourceType.BlankDocument(file.toUri())
else
VueResourceType.Local(
Expand Down

0 comments on commit d7b1ae3

Please sign in to comment.