From 49c7d54fc6c235c57eb7f04195045de1fff7ebc0 Mon Sep 17 00:00:00 2001 From: saturneric Date: Wed, 21 Oct 2026 22:20:30 +0200 Subject: fix(i18n): avoid lupdate namespace parsing warning - alias command metadata to prevent lupdate from misreading the type - use the alias for the check-for-updates command metadata definition --- src/m_ver_check/VersionCheckingModule.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/m_ver_check/VersionCheckingModule.cpp') diff --git a/src/m_ver_check/VersionCheckingModule.cpp b/src/m_ver_check/VersionCheckingModule.cpp index 75845bf..3d4a4ec 100644 --- a/src/m_ver_check/VersionCheckingModule.cpp +++ b/src/m_ver_check/VersionCheckingModule.cpp @@ -49,6 +49,10 @@ namespace { +/// Spelled unqualified: lupdate misreads `gf::cmd::Meta kMeta{` in a class +/// body and warns about an unknown namespace. +using CommandMeta = gf::cmd::Meta; + /// Whether to check at startup. The Host's own setting: the setup wizard /// asks it, and this module's settings page shows the same switch rather /// than a second one that could disagree. @@ -161,7 +165,7 @@ class UpdateSettingsWidget : public QWidget, public gf::ui::SettingsWidget { /// Help > Check for Updates. struct CheckForUpdates { - static constexpr gf::cmd::Meta kMeta{ + static constexpr CommandMeta kMeta{ GF_MODULE_ID ".check_for_updates", GTrC::Noop("Check for Updates"), GTrC::Noop("See whether a newer GpgFrontend is available"), -- cgit