From e40cc11fd569553029b82e68adde1f1671c9c62f Mon Sep 17 00:00:00 2001 From: sithlord48 Date: Sat, 7 Jun 2025 23:36:46 -0400 Subject: [PATCH] refactor: messages::showDaemonOffline enable translations --- src/lib/gui/Messages.cpp | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/src/lib/gui/Messages.cpp b/src/lib/gui/Messages.cpp index f4f1650ea..a5f365268 100644 --- a/src/lib/gui/Messages.cpp +++ b/src/lib/gui/Messages.cpp @@ -313,15 +313,17 @@ bool showDaemonOffline(QWidget *parent) const auto ignore = message.addButton(QObject::tr("Ignore"), QMessageBox::RejectRole); const auto disable = message.addButton(QObject::tr("Disable"), QMessageBox::NoRole); - message.setText(QString( - "

There was a problem finding the %1 background service (daemon).

" - "

The background service makes %1 work with UAC prompts and the login screen.

" - "

If don't want to use the background service and intentionally stopped it, " - "you can prevent it's use by disabling this feature.

" - "

If you did not stop the background service intentionally, there may be a problem with it. " - "Please retry or try restarting the %1 service from the Windows services program.

" - ) - .arg(kAppName)); + message.setText( + QObject::tr( + "

There was a problem finding the %1 background service (daemon).

" + "

The background service makes %1 work with UAC prompts and the login screen.

" + "

If don't want to use the background service and intentionally stopped it, " + "you can prevent it's use by disabling this feature.

" + "

If you did not stop the background service intentionally, there may be a problem with it. " + "Please retry or try restarting the %1 service from the Windows services program.

" + ) + .arg(kAppName) + ); message.exec(); if (message.clickedButton() == ignore) {