fix an issue where updating the menu bar multiple times would actually just add to it

master
BodgeMaster 2022-03-20 10:19:10 +01:00
parent 7d3f606304
commit bcd9d00a47
1 changed files with 1 additions and 0 deletions

View File

@ -30,6 +30,7 @@ class Window(QtWidgets.QMainWindow):
# if not a sub menu
if menu == None:
menu = self.menuBar()
menu.clear()
#Looping through entire menu_dict
for entry in menu_dict: