Skip to content

Commit

Permalink
Reset the screenshot controls when loading a new package.
Browse files Browse the repository at this point in the history
Fixes next/previous button being visible when viewing a package
with no screenshots after viewing one that had multiple.
  • Loading branch information
mtwebster committed Jun 11, 2024
1 parent b3bc3f8 commit 0fb704b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions usr/lib/linuxmint/mintinstall/mintinstall.py
Original file line number Diff line number Diff line change
Expand Up @@ -3125,6 +3125,7 @@ def show_package(self, pkginfo, previous_page):
self.ss_swipe_handler.set_propagation_phase(Gtk.PropagationPhase.NONE)
self.screenshot_stack.last = 0
self.screenshot_stack.add_named(Gtk.Spinner(active=True), "spinner")
self.screenshot_controls_vgroup.set_visible(False)
self.add_screenshots(pkginfo)
self.screenshot_stack.show_all()
self.screenshot_stack.grab_focus()
Expand Down

0 comments on commit 0fb704b

Please sign in to comment.