made ShortcutsWindow not modal

This commit is contained in:
Martin Wagner 2020-09-29 14:01:31 +02:00
parent 84e6a5a34c
commit 1ded4a59c9

View File

@ -3363,7 +3363,7 @@ class MPDActionGroup(Gio.SimpleActionGroup):
####################
class ShortcutsWindow(Gtk.ShortcutsWindow):
def __init__(self):
super().__init__(modal=True)
super().__init__()
general_group=Gtk.ShortcutsGroup(title=_("General"), visible=True)
window_group=Gtk.ShortcutsGroup(title=_("Window"), visible=True)
@ -3512,7 +3512,9 @@ class MainWindow(Gtk.ApplicationWindow):
super().__init__(title=("mpdevil"), icon_name="mpdevil", application=app)
Notify.init("mpdevil")
self.set_default_size(settings.get_int("width"), settings.get_int("height"))
self.set_help_overlay(ShortcutsWindow())
shortcuts_window=ShortcutsWindow()
self.set_help_overlay(shortcuts_window)
shortcuts_window.set_modal(False)
# adding vars
self._client=client