Skip to content

Commit

Permalink
frees the memory if the resource is not needed.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nyre221 authored Sep 21, 2023
1 parent 172c214 commit 9382efb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions page_viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,7 @@ def pdf_mode(self):

def img_mode(self):
self.setViewMode(qpageview.FitBoth)

def hide(self) -> None:
self.clear()
return super().hide()

0 comments on commit 9382efb

Please sign in to comment.