mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
Add typing to tabmanager
CURA-8588
This commit is contained in:
parent
02c81234d0
commit
408b649db7
1 changed files with 3 additions and 3 deletions
|
@ -24,12 +24,12 @@ class Marketplace(Extension):
|
||||||
class TabManager(QObject):
|
class TabManager(QObject):
|
||||||
def __init__(self) -> None:
|
def __init__(self) -> None:
|
||||||
super().__init__(parent=CuraApplication.getInstance())
|
super().__init__(parent=CuraApplication.getInstance())
|
||||||
self._tab_shown = 0
|
self._tab_shown: int = 0
|
||||||
|
|
||||||
def getTabShown(self):
|
def getTabShown(self) -> int:
|
||||||
return self._tab_shown
|
return self._tab_shown
|
||||||
|
|
||||||
def setTabShown(self, tab_shown):
|
def setTabShown(self, tab_shown: int) -> None:
|
||||||
if tab_shown != self._tab_shown:
|
if tab_shown != self._tab_shown:
|
||||||
self._tab_shown = tab_shown
|
self._tab_shown = tab_shown
|
||||||
self.tabShownChanged.emit()
|
self.tabShownChanged.emit()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue