Skip to content

Commit 309c7aa

Browse files
committed
Fix discord-presence feature
1 parent b2b19b9 commit 309c7aa

File tree

1 file changed

+5
-5
lines changed
  • frontend/desktop/src

1 file changed

+5
-5
lines changed

frontend/desktop/src/ui.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -959,11 +959,6 @@ pub fn main() {
959959
FrameData::default(),
960960
]);
961961

962-
#[cfg(feature = "discord-presence")]
963-
if let Some(discord_presence) = &mut state.discord_presence {
964-
discord_presence.stop();
965-
}
966-
967962
window_builder.run(
968963
move |window| {
969964
let fb_texture = FbTexture::new(window);
@@ -1007,6 +1002,11 @@ pub fn main() {
10071002
},
10081003
};
10091004

1005+
#[cfg(feature = "discord-presence")]
1006+
if let Some(discord_presence) = &mut state.discord_presence {
1007+
discord_presence.stop();
1008+
}
1009+
10101010
if let Some(rom_path) = env::args_os().nth(1) {
10111011
state.load_from_rom_path(Path::new(&rom_path), &mut config, window);
10121012
}

0 commit comments

Comments
 (0)