Skip to content

Commit

Permalink
Focus window on start
Browse files Browse the repository at this point in the history
  • Loading branch information
mtkennerly committed Oct 16, 2024
1 parent b1c9801 commit c164115
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ to better preserve the files' executable permissions.
Now, with `--force`, Ludusavi will not wait for any input.
* Old log files were not deleted when stored on a Windows network share.
* Changed:
* GUI: Updated to the latest version of [Iced](https://github.com/iced-rs/iced).
If the GUI fails to load, Ludusavi will log the error info.
* GUI: If the GUI fails to load, Ludusavi will try to log the error info.
* GUI: When you launch Ludusavi, the window now ensures that it gains focus.
* GUI: Modals now display on top of the app with a transparent background.
* GUI: On the backup and restore screens,
the filter controls now wrap depending on the window size.
Expand Down
1 change: 1 addition & 0 deletions src/gui/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1270,6 +1270,7 @@ impl App {
let mut commands = vec![
iced::font::load(std::borrow::Cow::Borrowed(crate::gui::font::TEXT_DATA)).map(|_| Message::Ignore),
iced::font::load(std::borrow::Cow::Borrowed(crate::gui::font::ICONS_DATA)).map(|_| Message::Ignore),
iced::window::get_oldest().and_then(iced::window::gain_focus),
];
if flags.update_manifest {
commands.push(Self::update_manifest(
Expand Down

0 comments on commit c164115

Please sign in to comment.