ProfileWindow: Remove redundant menu entry

This commit is contained in:
Philipp Hörist 2018-05-20 01:26:45 +02:00
parent 2819232808
commit 848cdc4a88
1 changed files with 3 additions and 6 deletions

View File

@ -154,8 +154,9 @@ class ProfileWindow:
"""
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()
nick = app.config.get_per('accounts', self.account, 'name')
@ -165,10 +166,6 @@ class ProfileWindow:
gtkgui_helpers.on_avatar_save_as_menuitem_activate,
sha, nick)
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())
# show the menu
menu.show_all()