Skip to content

Commit f63e030

Browse files
add app id for icon
1 parent 9e01eb0 commit f63e030

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

minesweeper-iced/src/main.rs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use iced::{time, Subscription, Theme};
1+
use iced::{time, window, Subscription, Theme};
22
use minesweeper::model::GameState;
33
use minesweeper_iced::{AppMsg, AppState};
44
use std::time::Duration;
@@ -9,7 +9,6 @@ fn main() -> iced::Result {
99

1010
fn launch() -> iced::Result {
1111
iced::application("Minesweeper", AppState::update, AppState::view)
12-
.window_size((1024., 1124.))
1312
.subscription(|state| {
1413
if matches!(state.board.state(), GameState::Active) {
1514
time::every(Duration::from_secs(1)).map(|_| AppMsg::Tick)
@@ -18,5 +17,14 @@ fn launch() -> iced::Result {
1817
}
1918
})
2019
.theme(|_state| Theme::Dark)
20+
.window(window::Settings {
21+
size: (1024., 1124.).into(),
22+
#[cfg(target_os = "linux")]
23+
platform_specific: window::settings::PlatformSpecific {
24+
application_id: "minesweeper".into(),
25+
..Default::default()
26+
},
27+
..Default::default()
28+
})
2129
.run_with(AppState::new)
2230
}

0 commit comments

Comments
 (0)