We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b2b19b9 commit 309c7aaCopy full SHA for 309c7aa
frontend/desktop/src/ui.rs
@@ -959,11 +959,6 @@ pub fn main() {
959
FrameData::default(),
960
]);
961
962
- #[cfg(feature = "discord-presence")]
963
- if let Some(discord_presence) = &mut state.discord_presence {
964
- discord_presence.stop();
965
- }
966
-
967
window_builder.run(
968
move |window| {
969
let fb_texture = FbTexture::new(window);
@@ -1007,6 +1002,11 @@ pub fn main() {
1007
1002
},
1008
1003
};
1009
1004
1005
+ #[cfg(feature = "discord-presence")]
1006
+ if let Some(discord_presence) = &mut state.discord_presence {
+ discord_presence.stop();
+ }
+
1010
if let Some(rom_path) = env::args_os().nth(1) {
1011
state.load_from_rom_path(Path::new(&rom_path), &mut config, window);
1012
}
0 commit comments