Skip to content

Commit 649a750

Browse files
committed
Fix thumbnail render getting stuck if no profile selected
1 parent fc07908 commit 649a750

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mousetracks2/gui/main_window.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1313,15 +1313,15 @@ def _request_thumbnail(self) -> bool:
13131313
self._thumbnail_redraw_required = True
13141314
return True
13151315

1316-
# Flag if drawing to prevent building up duplicate commands
1317-
self.pause_redraw += 1
1318-
13191316
width = self.ui.thumbnail.width()
13201317
height = self.ui.thumbnail.height()
13211318
sanitised_profile_name, profile_name = self._selected_profile_data()
13221319
if sanitised_profile_name is None:
13231320
return False
13241321

1322+
# Flag if drawing to prevent building up duplicate commands
1323+
self.pause_redraw += 1
1324+
13251325
# Account for collapsed splitters
13261326
if not self.ui.horizontal_splitter.sizes()[1] and self.ui.horizontal_splitter.is_handle_visible():
13271327
width += self.ui.horizontal_splitter.handleWidth()

0 commit comments

Comments
 (0)