mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-22 22:23:57 -06:00
Fix code style
CURA-5384
This commit is contained in:
parent
c0b7e40b0d
commit
e6c6edc9eb
1 changed files with 3 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
|||
# Copyright (c) 2018 Ultimaker B.V.
|
||||
# Cura is released under the terms of the LGPLv3 or higher.
|
||||
|
||||
from typing import TYPE_CHECKING, List
|
||||
from typing import TYPE_CHECKING, Callable, List
|
||||
|
||||
from UM.Logger import Logger
|
||||
|
||||
|
@ -19,11 +19,11 @@ class OnExitCallbackManager:
|
|||
|
||||
def __init__(self, application: "CuraApplication") -> None:
|
||||
self._application = application
|
||||
self._on_exit_callback_list = list() # type: List[callable]
|
||||
self._on_exit_callback_list = list() # type: List[Callable]
|
||||
self._current_callback_idx = 0
|
||||
self._is_all_checks_passed = False
|
||||
|
||||
def addCallback(self, callback: callable) -> None:
|
||||
def addCallback(self, callback: Callable) -> None:
|
||||
self._on_exit_callback_list.append(callback)
|
||||
Logger.log("d", "on-app-exit callback [%s] added.", callback)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue