mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-24 02:00:24 +07:00
feat: move amnezia hardcode from sources to cmake
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
#endif
|
||||
|
||||
#if defined(Q_OS_IOS) || defined(MACOS_NE)
|
||||
#include <AmneziaVPN-Swift.h>
|
||||
#include "core/utils/swiftInterop.h"
|
||||
#endif
|
||||
|
||||
SettingsUiController::SettingsUiController(SettingsController* settingsController,
|
||||
@@ -83,7 +83,7 @@ void SettingsUiController::toggleLogging(bool enable)
|
||||
{
|
||||
m_settingsController->toggleLogging(enable);
|
||||
#if defined(Q_OS_IOS)
|
||||
AmneziaVPN::toggleLogging(enable);
|
||||
SWIFT_INTEROP_NAMESPACE::toggleLogging(enable);
|
||||
#endif
|
||||
if (enable == true) {
|
||||
qInfo().noquote() << QString("Logging has enabled on %1 version %2 %3").arg(APPLICATION_NAME, APP_VERSION, GIT_COMMIT_HASH);
|
||||
@@ -182,7 +182,7 @@ void SettingsUiController::clearSettings()
|
||||
emit changeSettingsFinished(tr("All settings have been reset to default values"));
|
||||
|
||||
#if defined(Q_OS_IOS) || defined(MACOS_NE)
|
||||
AmneziaVPN::clearSettings();
|
||||
SWIFT_INTEROP_NAMESPACE::clearSettings();
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user