diff options
Diffstat (limited to 'src/util.cpp')
-rw-r--r-- | src/util.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/util.cpp b/src/util.cpp index e288e25b..b830b194 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -131,8 +131,9 @@ QString Util::findBinaryInPath(QString binary) { bool Util::checkConfig() { return !QFile(QDir(QtPassSettings::getPassStore()).filePath(".gpg-id")) .exists() || - (!QtPassSettings::getPassExecutable().startsWith("wsl ") && - !QFile(QtPassSettings::getPassExecutable()).exists() && + (QtPassSettings::isUsePass() ? + !QtPassSettings::getPassExecutable().startsWith("wsl ") && + !QFile(QtPassSettings::getPassExecutable()).exists() : !QtPassSettings::getGpgExecutable().startsWith("wsl ") && !QFile(QtPassSettings::getGpgExecutable()).exists()); } |