Commit 881bf3a1 authored by Cédric Bellegarde's avatar Cédric Bellegarde

Fix settings shortcut

parent 5d0b60c3
Pipeline #76294 passed with stage
in 14 minutes and 31 seconds
......@@ -22,7 +22,7 @@
<object class="GtkShortcutsShortcut">
<property name="visible">True</property>
<property name="title" translatable="yes" context="shortcut window">Settings</property>
<property name="accelerator">&lt;Primary&gt;s</property>
<property name="accelerator">&lt;Primary&gt;comma</property>
</object>
</child>
<child>
......
......@@ -411,8 +411,8 @@ class Application(Gtk.Application):
self.set_accels_for_action("win.shortcut::history", ["<Control>h"])
self.set_accels_for_action("win.shortcut::search", ["<Control>k"])
self.set_accels_for_action("win.shortcut::fullscreen", ["F11"])
self.set_accels_for_action("app.settings",
["<Control>s"])
self.set_accels_for_action("win.shortcut::settings",
["<Control>comma"])
self.set_accels_for_action("win.shortcut::backward",
["<Alt>Left", "Back"])
self.set_accels_for_action("win.shortcut::forward",
......
......@@ -16,7 +16,6 @@ from gettext import gettext as _
from eolie.menu_languages import LanguagesMenu
from eolie.menu_block import JSBlockMenu, AdblockMenu
from eolie.settings import SettingsDialog
from eolie.menu_block import PopupBlockMenu, ImageBlockMenu
from eolie.define import App
......@@ -183,6 +182,7 @@ class ToolbarMenu(Gtk.PopoverMenu):
@param action as Gio.SimpleAction
@param param as GLib.Variant
"""
from eolie.settings import SettingsDialog
dialog = SettingsDialog(self.__window)
dialog.show()
......
......@@ -419,6 +419,11 @@ class Window(Gtk.ApplicationWindow):
self.__container.try_close_view(self.container.current)
elif string == "reload":
self.container.current.webview.reload()
elif string == "settings":
# Rework all this code to use actions like in Lollypop
from eolie.settings import SettingsDialog
dialog = SettingsDialog(self)
dialog.show()
elif string == "home":
self.container.current.webview.load_uri(App().start_page)
elif string == "source":
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment