add shortcut for page reload
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user