mirror of
https://github.com/SoongNoonien/mpdevil.git
synced 2023-08-10 21:12:44 +03:00
removed inelegant try/except
This commit is contained in:
parent
74989364fe
commit
c986da58f6
@ -3770,17 +3770,13 @@ class MainWindow(Gtk.ApplicationWindow):
|
||||
|
||||
def _on_show_info(self, action, param):
|
||||
widget=self.get_focus()
|
||||
try:
|
||||
if hasattr(widget, "show_info") and callable(widget.show_info):
|
||||
widget.show_info()
|
||||
except AttributeError:
|
||||
pass
|
||||
|
||||
def _on_add_to_playlist(self, action, param, mode):
|
||||
widget=self.get_focus()
|
||||
try:
|
||||
if hasattr(widget, "add_to_playlist") and callable(widget.add_to_playlist):
|
||||
widget.add_to_playlist(mode)
|
||||
except AttributeError:
|
||||
pass
|
||||
|
||||
def _on_search_button_toggled(self, button):
|
||||
if button.get_active():
|
||||
|
Loading…
Reference in New Issue
Block a user