ProfileWindow: Remove redundant menu entry
This commit is contained in:
parent
2819232808
commit
848cdc4a88
|
@ -154,8 +154,9 @@ class ProfileWindow:
|
||||||
"""
|
"""
|
||||||
If right-clicked, show popup
|
If right-clicked, show popup
|
||||||
"""
|
"""
|
||||||
pixbuf = self.xml.get_object('PHOTO_button').get_image().get_pixbuf()
|
|
||||||
if event.button == 3 and pixbuf: # right click
|
if event.button == 3:
|
||||||
|
# right click
|
||||||
menu = Gtk.Menu()
|
menu = Gtk.Menu()
|
||||||
|
|
||||||
nick = app.config.get_per('accounts', self.account, 'name')
|
nick = app.config.get_per('accounts', self.account, 'name')
|
||||||
|
@ -165,10 +166,6 @@ class ProfileWindow:
|
||||||
gtkgui_helpers.on_avatar_save_as_menuitem_activate,
|
gtkgui_helpers.on_avatar_save_as_menuitem_activate,
|
||||||
sha, nick)
|
sha, nick)
|
||||||
menu.append(menuitem)
|
menu.append(menuitem)
|
||||||
# show clear
|
|
||||||
menuitem = Gtk.MenuItem.new_with_mnemonic(_('_Clear'))
|
|
||||||
menuitem.connect('activate', self.on_clear_button_clicked)
|
|
||||||
menu.append(menuitem)
|
|
||||||
menu.connect('selection-done', lambda w:w.destroy())
|
menu.connect('selection-done', lambda w:w.destroy())
|
||||||
# show the menu
|
# show the menu
|
||||||
menu.show_all()
|
menu.show_all()
|
||||||
|
|
Loading…
Reference in New Issue