Remove checks for unique root

This commit is contained in:
Veronica Berglyd Olsen
2022-02-14 22:18:16 +01:00
parent f8ddff9bc3
commit 05aa656e75
4 changed files with 1 additions and 41 deletions
-18
View File
@@ -71,24 +71,6 @@ class GuiMainMenu(QMenuBar):
return
##
# Methods
##
def setAvailableRoot(self):
"""Update the list of available root folders and set the ones
that are active.
"""
for itemClass in nwItemClass:
if itemClass == nwItemClass.NO_CLASS:
continue
if itemClass == nwItemClass.TRASH:
continue
self.rootItems[itemClass].setVisible(
self.theProject.projTree.checkRootUnique(itemClass)
)
return
##
# Update Menu on Settings Changed
##
-2
View File
@@ -581,7 +581,6 @@ class GuiProjectTree(QTreeWidget):
if trItemS.childCount() == 0:
self.takeTopLevelItem(tIndex)
self._deleteTreeItem(tHandle)
self.theParent.mainMenu.setAvailableRoot()
self._setTreeChanged(True)
else:
self.theParent.makeAlert(self.tr(
@@ -973,7 +972,6 @@ class GuiProjectTree(QTreeWidget):
if pHandle is None:
if nwItem.itemType == nwItemType.ROOT:
self.addTopLevelItem(newItem)
self.theParent.mainMenu.setAvailableRoot()
elif nwItem.itemType == nwItemType.TRASH:
self.addTopLevelItem(newItem)
else: