Skip to content

Commit

Permalink
Fix discord-presence feature
Browse files Browse the repository at this point in the history
  • Loading branch information
kelpsyberry committed Feb 8, 2024
1 parent b2b19b9 commit 309c7aa
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions frontend/desktop/src/ui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -959,11 +959,6 @@ pub fn main() {
FrameData::default(),
]);

#[cfg(feature = "discord-presence")]
if let Some(discord_presence) = &mut state.discord_presence {
discord_presence.stop();
}

window_builder.run(
move |window| {
let fb_texture = FbTexture::new(window);
Expand Down Expand Up @@ -1007,6 +1002,11 @@ pub fn main() {
},
};

#[cfg(feature = "discord-presence")]
if let Some(discord_presence) = &mut state.discord_presence {
discord_presence.stop();
}

if let Some(rom_path) = env::args_os().nth(1) {
state.load_from_rom_path(Path::new(&rom_path), &mut config, window);
}
Expand Down

0 comments on commit 309c7aa

Please sign in to comment.