Skip to content

Commit

Permalink
fix(win,gui): allow renaming of the executable (#1052)
Browse files Browse the repository at this point in the history
Allow renaming of `kanata.exe` gui app by omitting the name.

Fixes one of
#990 (comment)
  • Loading branch information
eugenesvk authored May 21, 2024
1 parent 9fa3965 commit e4efbd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/win.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1218,7 +1218,7 @@ pub mod system_tray_ui {
nwg::ImageDecoder::builder().build(&mut d.decoder)?;
// Resources
d.embed = Default::default();
d.embed = nwg::EmbedResource::load(Some("kanata.exe"))?;
d.embed = nwg::EmbedResource::load(None)?;
nwg::Icon::builder()
.source_embed(Some(&d.embed))
.source_embed_str(Some("iconMain"))
Expand Down

0 comments on commit e4efbd9

Please sign in to comment.