iOS crash fix

This commit is contained in:
pokamest 2024-03-06 10:07:49 -08:00
parent 59a7265bac
commit bca68fc185

View file

@ -140,7 +140,10 @@ void AmneziaApplication::init()
m_settingsController->importBackupFromOutside(filePath);
});
AmneziaVPN::toggleScreenshots(m_settings->isScreenshotsEnabled());
QTimer::singleShot(0, this, [this](){
AmneziaVPN::toggleScreenshots(m_settings->isScreenshotsEnabled());
});
connect(m_settings.get(), &Settings::screenshotsEnabledChanged, [](bool enabled) {
AmneziaVPN::toggleScreenshots(enabled);
});