From f0c8e02901c7fdb30c201a182512c7f92cfd382a Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Fri, 6 Sep 2024 14:32:20 +0200 Subject: [PATCH] [keyboard] Remove misplaced
from user-visible message --- src/modules/keyboard/Config.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/modules/keyboard/Config.cpp b/src/modules/keyboard/Config.cpp index ad6bee6f7..d1b12471c 100644 --- a/src/modules/keyboard/Config.cpp +++ b/src/modules/keyboard/Config.cpp @@ -11,7 +11,6 @@ #include "Config.h" #include "SetKeyboardLayoutJob.h" -#include "keyboardwidget/keyboardpreview.h" #include "GlobalStorage.h" #include "JobQueue.h" @@ -501,10 +500,10 @@ Config::detectCurrentKeyboardLayout() QString Config::prettyStatus() const { - QString status; - status - += tr( "Keyboard model has been set to %1
.", "@label, %1 is keyboard model, as in Apple Magic Keyboard" ) - .arg( m_keyboardModelsModel->label( m_keyboardModelsModel->currentIndex() ) ); + QString status + = tr( "Keyboard model has been set to %1.", "@label, %1 is keyboard model, as in Apple Magic Keyboard" ) + .arg( m_keyboardModelsModel->label( m_keyboardModelsModel->currentIndex() ) ); + status += QStringLiteral( "
" ); QString layout = m_keyboardLayoutsModel->item( m_keyboardLayoutsModel->currentIndex() ).second.description; QString variant = m_keyboardVariantsModel->currentIndex() >= 0