mirror of
https://github.com/debauchee/barrier.git
synced 2026-02-11 06:05:08 +08:00
Renamed function, was reserved keyword on Mac #4522
This commit is contained in:
@@ -56,7 +56,7 @@ void Fingerprint::trust(const QString& fingerprintText)
|
||||
}
|
||||
}
|
||||
|
||||
bool Fingerprint::check(const QString& fingerprintText)
|
||||
bool Fingerprint::exists(const QString& fingerprintText)
|
||||
{
|
||||
CoreInterface coreInterface;
|
||||
QString profileDir = coreInterface.getProfileDir();
|
||||
|
||||
@@ -26,7 +26,7 @@ private:
|
||||
|
||||
public:
|
||||
void trust(const QString& fingerprintText);
|
||||
bool check(const QString& fingerprintText);
|
||||
bool exists(const QString& fingerprintText);
|
||||
|
||||
public:
|
||||
static Fingerprint local();
|
||||
|
||||
@@ -409,7 +409,7 @@ void MainWindow::checkFingerprint(const QString& line)
|
||||
}
|
||||
|
||||
QString fingerprint = fingerprintRegex.cap(1);
|
||||
if (Fingerprint::trustedServers().check(fingerprint)) {
|
||||
if (Fingerprint::trustedServers().exists(fingerprint)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user