mirror of
https://github.com/morgan9e/warehouse
synced 2026-04-14 00:04:08 +09:00
Add remote from file & more
Add remote from a repo file either from the picker in the popular remotes window or by a drag and drop. Allow main menu to be opened with F10
This commit is contained in:
@@ -50,6 +50,7 @@ class WarehouseApplication(Adw.Application):
|
||||
self.create_action("show-remotes-window", self.show_remotes_shortcut, ["<primary>m"])
|
||||
self.create_action("set-filter", self.filters_shortcut, ["<primary>t"])
|
||||
self.create_action("install-from-file", self.install_from_file, ["<primary>o"])
|
||||
self.create_action("open-menu", self.main_menu_shortcut, ["F10"])
|
||||
|
||||
def batch_mode_shortcut(self, widget, _):
|
||||
button = self.props.active_window.batch_mode_button
|
||||
@@ -75,6 +76,10 @@ class WarehouseApplication(Adw.Application):
|
||||
window = self.props.active_window
|
||||
window.filterWindowKeyboardHandler(window)
|
||||
|
||||
def main_menu_shortcut(self, widget, _):
|
||||
window = self.props.active_window
|
||||
window.main_menu.set_active(True)
|
||||
|
||||
def file_callback(self, object, result):
|
||||
window = self.props.active_window
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user