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:
heliguy4599
2023-10-10 09:09:12 -04:00
parent a2921c8223
commit 01f2382d7a
7 changed files with 154 additions and 23 deletions

View File

@@ -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: