add shortcut for page reload

This commit is contained in:
Peter Eisenmann
2022-04-30 11:13:45 +02:00
parent 3330f16b58
commit 2d4807383b
3 changed files with 5 additions and 3 deletions

View File

@@ -178,7 +178,7 @@ template DiskPage : Box {
}
Button {
/* Translators: Button label to open disk management tool. Underscore can not be for same as for 'Reload' */
/* Translators: Button label to open disk management tool. */
label: _("_Manage Disks");
focusable: true;
halign: center;

View File

@@ -52,7 +52,8 @@ class Application(Adw.Application):
},
{
'name': 'reload-page',
'func': self._on_reload_page
'func': self._on_reload_page,
'accels': ['F5']
},
{
'name': 'quit',

View File

@@ -202,7 +202,8 @@ class OsInstallerWindow(Adw.ApplicationWindow):
def reload_page(self):
with self.navigation_lock:
self.current_page.load()
if self.current_page.can_reload:
self.current_page.load()
def show_confirm_quit_dialog(self):
popup = ConfirmQuitPopup(self.quit_callback)