Fix transient console pop-ups on Windows

This commit is contained in:
Damien Elmes 2025-06-29 16:46:45 +07:00
parent 66f34da7ef
commit 349a696f93

View file

@ -101,8 +101,6 @@ fn run() -> Result<()> {
previous_version: None,
};
check_versions(&mut state);
// Check for uninstall request from Windows uninstaller
if std::env::var("ANKI_LAUNCHER_UNINSTALL").is_ok() {
ensure_terminal_shown()?;
@ -145,6 +143,8 @@ fn run() -> Result<()> {
print!("\x1B[2J\x1B[H"); // Clear screen and move cursor to top
println!("\x1B[1mAnki Launcher\x1B[0m\n");
check_versions(&mut state);
main_menu_loop(&state)?;
// Write marker file to indicate we've completed the sync process