window: Add reload button and F5 shortcut

Reloading makes sense for out of memory situations or filesystems that
don't support inotify.
This commit is contained in:
Sophie Herold 2024-07-29 04:59:10 +02:00
parent c3547f82fc
commit 053aa5da7e
6 changed files with 56 additions and 7 deletions

View file

@ -758,6 +758,8 @@ impl LpWindow {
for action in ACTIONS {
self.action_set_enabled(action, enabled);
}
self.action_set_enabled(Action::Reload.as_ref(), true);
}
/// Handles change in image and availability of images