mirror of
https://github.com/QuasarApp/QuasarAppLib.git
synced 2025-04-26 01:34:39 +00:00
update get functionsx
This commit is contained in:
parent
08c27ec560
commit
c17c20e51f
@ -10,7 +10,10 @@ QByteArray QuasarAppUtils::QASecretService::getByAlias(const QString &alias) {
|
||||
|
||||
proc.waitForFinished(2000);
|
||||
|
||||
return proc.readAllStandardOutput();
|
||||
QByteArray result = proc.readAllStandardOutput();
|
||||
|
||||
// drop \n
|
||||
return result.left(result.size() - 1);
|
||||
}
|
||||
|
||||
QByteArray QuasarAppUtils::QASecretService::getByHash(const QByteArray &hash)
|
||||
@ -22,6 +25,8 @@ QByteArray QuasarAppUtils::QASecretService::getByHash(const QByteArray &hash)
|
||||
proc.start();
|
||||
|
||||
proc.waitForFinished(2000);
|
||||
QByteArray result = proc.readAllStandardOutput();
|
||||
|
||||
return proc.readAllStandardOutput();
|
||||
// drop \n
|
||||
return result.left(result.size() - 1);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user