Skip to content

Commit

Permalink
macos fixes + version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
yeastplume committed Apr 12, 2024
1 parent ebc3101 commit e8b849a
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "grin-gui"
version = "0.1.0-alpha.6"
version = "0.1.0-alpha.7"
authors = ["Grin Developers <[email protected]>"]
description = "GUI wrapping grin and grin-wallet. Simple, private and scalable cryptocurrency implementation based on the MimbleWimble chain format."
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion crates/core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "grin-gui-core"
description = "Core GUI library for Grin GUI"
version = "0.1.0-alpha.6"
version = "0.1.0-alpha.7"
authors = ["Yeastplume", "Casper Rogild Storm"]
license = "GPL-3.0"
homepage = "https://github.com/mimblewimble/grin-gui"
Expand Down
2 changes: 1 addition & 1 deletion src/gui/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ pub fn run(opts: Opts, config: Config) {
#[cfg(target_os = "macos")]
{
// false needed for Application shutdown
settings.windows.exit_on_close_request = false;
settings.window.exit_on_close_request = false;
}

#[cfg(target_os = "windows")]
Expand Down
4 changes: 3 additions & 1 deletion src/gui/update.rs
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ pub fn handle_message(grin_gui: &mut GrinGui, message: Message) -> Result<Comman
#[cfg(target_os = "macos")]
// Application shutdown
Message::RuntimeEvent(iced_core::Event::Window(
iced_core::window::Id::MAIN,
iced_core::window::Event::CloseRequested,
)) => {
log::debug!("Message::RuntimeEvent(CloseRequested)");
Expand All @@ -306,7 +307,8 @@ pub fn handle_message(grin_gui: &mut GrinGui, message: Message) -> Result<Comman
if grin_gui.config.close_to_tray {
let _ = sender.try_send(TrayMessage::CloseToTray);
} else {
return Ok(window::close(iced_core::window::Id::MAIN));
grin_gui.show_exit(true);
//return Ok(window::close(iced_core::window::Id::MAIN));
}
}
}
Expand Down

0 comments on commit e8b849a

Please sign in to comment.