GODT-1670: restore update [skip-ci]

GODT-1670: Log the gRPC call
This commit is contained in:
Romain LE JEUNE
2022-07-25 10:03:54 +02:00
committed by Jakub
parent d3f9756bdb
commit 649364beb5
4 changed files with 47 additions and 8 deletions

View File

@ -305,7 +305,7 @@ void QMLBackend::toggleAutomaticUpdate(bool active)
//****************************************************************************************************************************************************
void QMLBackend::checkUpdates()
{
app().grpc().checkUpdate();
logGRPCCallStatus(app().grpc().checkUpdate(), "checkUpdate");
}
@ -314,7 +314,7 @@ void QMLBackend::checkUpdates()
//****************************************************************************************************************************************************
void QMLBackend::installUpdate()
{
app().log().error(QString("%1() is not implemented.").arg(__FUNCTION__));
logGRPCCallStatus(app().grpc().installUpdate(), "installUpdate");
}

View File

@ -33,7 +33,6 @@ void initQtApplication()
if ((!qsgInfo.isEmpty()) && (qsgInfo != "0"))
QLoggingCategory::setFilterRules("qt.scenegraph.general=true");
/// \todo GODT-1670 Get version from go backend.
QGuiApplication::setApplicationName("Proton Mail Bridge");
QGuiApplication::setApplicationVersion(PROJECT_VER);
QGuiApplication::setOrganizationName("Proton AG");