mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-23 02:00:20 +07:00
reset files
This commit is contained in:
@@ -662,22 +662,13 @@ static UIBezierPath *amneziaScanBracketStrokePath(int corner, CGFloat x0, CGFloa
|
|||||||
} @catch (NSException *ex) {
|
} @catch (NSException *ex) {
|
||||||
NSLog(@"Start running exception: %@", ex);
|
NSLog(@"Start running exception: %@", ex);
|
||||||
}
|
}
|
||||||
const BOOL running = [runningSession isRunning];
|
|
||||||
dispatch_async(dispatch_get_main_queue(), ^{
|
dispatch_async(dispatch_get_main_queue(), ^{
|
||||||
AmneziaPairingQrOverlayViewController *strongSelf = weakSelf;
|
AmneziaPairingQrOverlayViewController *strongSelf = weakSelf;
|
||||||
if (!strongSelf) {
|
if (!strongSelf) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
AVCaptureVideoPreviewLayer *pl = strongSelf.previewLayer;
|
|
||||||
[strongSelf applyTorchFromGlobalFlag];
|
[strongSelf applyTorchFromGlobalFlag];
|
||||||
});
|
});
|
||||||
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.35 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
|
|
||||||
AmneziaPairingQrOverlayViewController *strongSelf = weakSelf;
|
|
||||||
if (!strongSelf) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
AVCaptureVideoPreviewLayer *pl = strongSelf.previewLayer;
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
return YES;
|
return YES;
|
||||||
@@ -702,7 +693,6 @@ static UIBezierPath *amneziaScanBracketStrokePath(int corner, CGFloat x0, CGFloa
|
|||||||
dispatch_async(dispatch_get_main_queue(), ^{
|
dispatch_async(dispatch_get_main_queue(), ^{
|
||||||
if (gOnScanned) {
|
if (gOnScanned) {
|
||||||
gOnScanned(copy.c_str());
|
gOnScanned(copy.c_str());
|
||||||
} else {
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -62,7 +62,6 @@ public:
|
|||||||
public slots:
|
public slots:
|
||||||
bool canOpenTvQrPairingPage();
|
bool canOpenTvQrPairingPage();
|
||||||
void startTvQrSession();
|
void startTvQrSession();
|
||||||
/** New UUID + QR image; aborts in-flight generate_qr without clearing the code first. */
|
|
||||||
void rotateTvQrSession();
|
void rotateTvQrSession();
|
||||||
void cancelTvQrSession();
|
void cancelTvQrSession();
|
||||||
void cancelAllPairingActivity();
|
void cancelAllPairingActivity();
|
||||||
|
|||||||
@@ -110,12 +110,6 @@ QVariant ApiAccountInfoModel::data(const QModelIndex &index, int role) const
|
|||||||
case IsInAppPurchaseRole: {
|
case IsInAppPurchaseRole: {
|
||||||
return m_accountInfoData.isInAppPurchase;
|
return m_accountInfoData.isInAppPurchase;
|
||||||
}
|
}
|
||||||
case ActiveDeviceCountRole: {
|
|
||||||
return m_accountInfoData.activeDeviceCount;
|
|
||||||
}
|
|
||||||
case MaxDeviceCountRole: {
|
|
||||||
return m_accountInfoData.maxDeviceCount;
|
|
||||||
}
|
|
||||||
case ConfigurationFilesCountRole: {
|
case ConfigurationFilesCountRole: {
|
||||||
return m_accountInfoData.configurationFilesCount;
|
return m_accountInfoData.configurationFilesCount;
|
||||||
}
|
}
|
||||||
@@ -227,8 +221,6 @@ QHash<int, QByteArray> ApiAccountInfoModel::roleNames() const
|
|||||||
roles[IsSubscriptionExpiredRole] = "isSubscriptionExpired";
|
roles[IsSubscriptionExpiredRole] = "isSubscriptionExpired";
|
||||||
roles[IsSubscriptionExpiringSoonRole] = "isSubscriptionExpiringSoon";
|
roles[IsSubscriptionExpiringSoonRole] = "isSubscriptionExpiringSoon";
|
||||||
roles[IsInAppPurchaseRole] = "isInAppPurchase";
|
roles[IsInAppPurchaseRole] = "isInAppPurchase";
|
||||||
roles[ActiveDeviceCountRole] = "activeDeviceCount";
|
|
||||||
roles[MaxDeviceCountRole] = "maxDeviceCount";
|
|
||||||
roles[ConfigurationFilesCountRole] = "configurationFilesCount";
|
roles[ConfigurationFilesCountRole] = "configurationFilesCount";
|
||||||
|
|
||||||
return roles;
|
return roles;
|
||||||
|
|||||||
@@ -26,8 +26,6 @@ public:
|
|||||||
IsSubscriptionExpiredRole,
|
IsSubscriptionExpiredRole,
|
||||||
IsSubscriptionExpiringSoonRole,
|
IsSubscriptionExpiringSoonRole,
|
||||||
IsInAppPurchaseRole,
|
IsInAppPurchaseRole,
|
||||||
ActiveDeviceCountRole,
|
|
||||||
MaxDeviceCountRole,
|
|
||||||
ConfigurationFilesCountRole
|
ConfigurationFilesCountRole
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user