Skip to content

Commit

Permalink
removed old "History" management code
Browse files Browse the repository at this point in the history
  • Loading branch information
anaselli committed Oct 27, 2024
1 parent f8a416e commit 1ecca4d
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions dnfdragora/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -658,16 +658,16 @@ def _createMenuButtons(self, headbar):
self.fileMenu['widget'].rebuildMenuTree();

# build Options menu
self.infoMenu = {
'widget' : self.factory.createMenuButton(headbar, _("&Information")),
'history' : yui.YMenuItem(_("History")),
}
#self.infoMenu = {
# 'widget' : self.factory.createMenuButton(headbar, _("&Information")),
# 'history' : yui.YMenuItem(_("History")),
#}

#NOTE following the same behavior to simplfy further menu entry addtion
ordered_menu_lines = ['history']
for l in ordered_menu_lines :
self.infoMenu['widget'].addItem(self.infoMenu[l])
self.infoMenu['widget'].rebuildMenuTree();
#ordered_menu_lines = ['history']
#for l in ordered_menu_lines :
# self.infoMenu['widget'].addItem(self.infoMenu[l])
#self.infoMenu['widget'].rebuildMenuTree();

# build Options menu
self.optionsMenu = {
Expand Down Expand Up @@ -1506,8 +1506,8 @@ def handleevent(self):
elif item == self.optionsMenu['user_prefs'] :
up = dialogs.OptionDialog(self)
up.run()
elif item == self.infoMenu['history'] :
self.backend.GetHistoryByDays(0, 120) #TODO add in config file
#elif item == self.infoMenu['history'] :
# self.backend.GetHistoryByDays(0, 120) #TODO add in config file
elif item == self.helpMenu['help'] :
info = helpinfo.DNFDragoraHelpInfo()
hd = helpdialog.HelpDialog(info)
Expand Down

0 comments on commit 1ecca4d

Please sign in to comment.