fix: resolve lambda variable capture issue in switchTab method
All checks were successful
Code check / Check code (push) Successful in 1m14s
All checks were successful
Code check / Check code (push) Successful in 1m14s
Signed-off-by: Boris Yumankulov <boria138@altlinux.org>
This commit is contained in:
@@ -824,20 +824,20 @@ class MainWindow(QMainWindow):
|
|||||||
if hasattr(self, "game_library_manager"):
|
if hasattr(self, "game_library_manager"):
|
||||||
mgr = self.game_library_manager
|
mgr = self.game_library_manager
|
||||||
if mgr.gamesListWidget and mgr.gamesListLayout:
|
if mgr.gamesListWidget and mgr.gamesListLayout:
|
||||||
layout = mgr.gamesListLayout
|
games_layout = mgr.gamesListLayout
|
||||||
widget = mgr.gamesListWidget
|
games_widget = mgr.gamesListWidget
|
||||||
QTimer.singleShot(0, lambda: (
|
QTimer.singleShot(0, lambda: (
|
||||||
layout.invalidate(),
|
games_layout.invalidate(),
|
||||||
widget.adjustSize(),
|
games_widget.adjustSize(),
|
||||||
widget.updateGeometry()
|
games_widget.updateGeometry()
|
||||||
))
|
))
|
||||||
if hasattr(self, "autoInstallContainer") and hasattr(self, "autoInstallContainerLayout"):
|
if hasattr(self, "autoInstallContainer") and hasattr(self, "autoInstallContainerLayout"):
|
||||||
layout = self.autoInstallContainerLayout
|
auto_layout = self.autoInstallContainerLayout
|
||||||
widget = self.autoInstallContainer
|
auto_widget = self.autoInstallContainer
|
||||||
QTimer.singleShot(0, lambda: (
|
QTimer.singleShot(0, lambda: (
|
||||||
layout.invalidate(),
|
auto_layout.invalidate(),
|
||||||
widget.adjustSize(),
|
auto_widget.adjustSize(),
|
||||||
widget.updateGeometry()
|
auto_widget.updateGeometry()
|
||||||
))
|
))
|
||||||
|
|
||||||
def openSystemOverlay(self):
|
def openSystemOverlay(self):
|
||||||
|
Reference in New Issue
Block a user