remove incorrect call to ensure_terminal_shown

This commit is contained in:
llama 2025-11-23 18:51:04 +08:00
parent 7c4a1e6c00
commit 3e0e5914eb
No known key found for this signature in database
GPG key ID: 0B7543854B9413C3

View file

@ -133,10 +133,6 @@ pub fn _run_anki_embeddedly(state: &crate::State) -> Result<()> {
#[cfg(windows)]
{
let console = std::env::var("ANKI_CONSOLE").is_ok();
if console {
// no pythonw.exe available for us to use
ensure_terminal_shown()?;
}
crate::platform::windows::prepare_to_launch_normally();
// NOTE: without windows_subsystem=console or pythonw,
// we need to reconnect stdin/stdout/stderr within the interp