Fix typing errors
This commit is contained in:
@@ -146,9 +146,9 @@ class GuiDocMerge(NDialog):
|
||||
def _resetList(self) -> None:
|
||||
"""Reset the content of the list box to its original state."""
|
||||
logger.debug("Resetting list box content")
|
||||
sHandle = self._data.get("sHandle", None)
|
||||
itemList = self._data.get("origItems", [])
|
||||
self._loadContent(sHandle, itemList)
|
||||
if sHandle := self._data.get("sHandle"):
|
||||
itemList = self._data.get("origItems", [])
|
||||
self._loadContent(sHandle, itemList)
|
||||
return
|
||||
|
||||
##
|
||||
|
||||
@@ -192,8 +192,8 @@ class GuiDocSplit(NDialog):
|
||||
@pyqtSlot()
|
||||
def _reloadList(self) -> None:
|
||||
"""Reload the content of the list box."""
|
||||
sHandle = self._data.get("sHandle", None)
|
||||
self._loadContent(sHandle)
|
||||
if sHandle := self._data.get("sHandle"):
|
||||
self._loadContent(sHandle)
|
||||
return
|
||||
|
||||
##
|
||||
|
||||
Reference in New Issue
Block a user