mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-02 08:44:25 +08:00
Add typing to tabmanager
CURA-8588
This commit is contained in:
parent
02c81234d0
commit
408b649db7
@ -24,12 +24,12 @@ class Marketplace(Extension):
|
||||
class TabManager(QObject):
|
||||
def __init__(self) -> None:
|
||||
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
|
||||
|
||||
def setTabShown(self, tab_shown):
|
||||
def setTabShown(self, tab_shown: int) -> None:
|
||||
if tab_shown != self._tab_shown:
|
||||
self._tab_shown = tab_shown
|
||||
self.tabShownChanged.emit()
|
||||
|
Loading…
x
Reference in New Issue
Block a user