Hello Anki friends, sorry to bother you ONCE AGAIN. But i need your guidance. Does anyone know why anki immediatly closes if I use this piece of code?

    windows = [mw]
    for window in windows:
        windowFlags = window.windowFlags()
        windowFlags ^= Qt.WindowStaysOnTopHint
        window.setWindowFlags(windowFlags)
        window.show()

More specifically, anki closes (it doesn’t crash, it closes. It’s not giving me an error message on anki-console) on these specific lines.

windowFlags ^= Qt.WindowStaysOnTopHint
        window.setWindowFlags(windowFlags)`