(Windows) Stop view videos when starting the theme dowloader as an extra precaution against the asinine file locking that exists on this operating system

This commit is contained in:
Leon Styhre 2023-08-22 19:41:49 +02:00
parent d35df06f86
commit b1895e017b

View file

@ -35,6 +35,11 @@ GuiThemeDownloader::GuiThemeDownloader(std::function<void()> updateCallback)
addChild(&mBackground);
addChild(&mGrid);
#if defined(_WIN64)
// Required due to the idiotic file locking that exists on this operating system.
ViewController::getInstance()->stopViewVideos();
#endif
const float fontSizeSmall {mRenderer->getIsVerticalOrientation() ? FONT_SIZE_MINI :
FONT_SIZE_SMALL};