focus text_view on LyricsWindow open

This commit is contained in:
Martin Wagner 2020-06-22 23:07:56 +02:00
parent 63ebb16545
commit 0596e3405a

View File

@ -3156,6 +3156,7 @@ class LyricsWindow(Gtk.Overlay):
self.show_all() self.show_all()
self.refresh() self.refresh()
GLib.idle_add(self.text_view.grab_focus) # focus textview
def remove_handlers(self, *args): def remove_handlers(self, *args):
self.client.emitter.disconnect(self.file_changed) self.client.emitter.disconnect(self.file_changed)