Skip to content

Commit

Permalink
Don't try to start the banner slideshow in low resolution mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
mtwebster committed Jul 8, 2024
1 parent 31563b4 commit eee710e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions usr/lib/linuxmint/mintinstall/mintinstall.py
Original file line number Diff line number Diff line change
Expand Up @@ -1521,10 +1521,16 @@ def on_dot_clicked(self, button, index):
self.update_dot_buttons(index)

def start_slideshow_timer(self):
if self.low_res:
return

self.stop_slideshow_timer()
self.banner_slideshow_timeout_id = GLib.timeout_add_seconds(5, self.on_slideshow_timeout)

def stop_slideshow_timer(self):
if self.low_res:
return

if self.banner_slideshow_timeout_id > 0:
GLib.source_remove(self.banner_slideshow_timeout_id)
self.banner_slideshow_timeout_id = 0
Expand Down

0 comments on commit eee710e

Please sign in to comment.