Skip to content

Commit

Permalink
Fix flashing when changing screenshot
Browse files Browse the repository at this point in the history
  • Loading branch information
XyperCode committed May 24, 2023
1 parent 834e6f6 commit c1c6211
Showing 1 changed file with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,18 +92,8 @@ class ScreenshotsScreen(title: Component) : FullscreenRenderScreen(title) {
* Refresh the screenshot cache.
*/
fun refresh() {
this.isLoading = true
this.loaded = false

if (this.screenshot != null) {
this.screenshot = null
}

thread {
loadScreenshot()

this.isLoading = false
this.loaded = true
}
}

Expand Down

0 comments on commit c1c6211

Please sign in to comment.