diff options
| author | saturneric <[email protected]> | 2026-10-21 22:17:15 +0200 |
|---|---|---|
| committer | saturneric <[email protected]> | 2026-10-21 22:17:15 +0200 |
| commit | 30dbc9b791cc83aa8645315306f68b6490136270 (patch) | |
| tree | 680031b6d4ed488859e0a27cf6c35b93b5b4df22 /src | |
| parent | fix(email): show an unauthorized signing key as its own verdict (diff) | |
| download | modules-30dbc9b791cc83aa8645315306f68b6490136270.tar.gz modules-30dbc9b791cc83aa8645315306f68b6490136270.zip | |
fix(i18n): avoid lupdate namespace parsing warning
- alias command metadata to prevent lupdate misreading qualified types
- reformat Open IMAP Controller metadata initialization consistently
Diffstat (limited to 'src')
| -rw-r--r-- | src/m_email/EMailModule.cpp | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/src/m_email/EMailModule.cpp b/src/m_email/EMailModule.cpp index cc7a647..354dbc5 100644 --- a/src/m_email/EMailModule.cpp +++ b/src/m_email/EMailModule.cpp @@ -1700,9 +1700,13 @@ auto OnEditTabTypeEmailOpDecryptVerify(const GFEvent& event) -> GFEventResult { namespace { +/// Spelled unqualified: lupdate misreads `gf::cmd::Meta kMeta{` in a class +/// body and warns about an unknown namespace. +using CommandMeta = gf::cmd::Meta; + /// File > Workspace > Mail Editor: an empty message, in a tab of its own. struct NewMessage { - static constexpr gf::cmd::Meta kMeta{ + static constexpr CommandMeta kMeta{ GF_MODULE_ID ".new_message", GTrC::Noop("Mail Editor"), GTrC::Noop("Open a new text editor for email."), @@ -1723,13 +1727,12 @@ auto DoNewMessage(const gf::cmd::CommandContext& /*ctx*/, /// Advanced > Open IMAP Controller. struct OpenImapController { - static constexpr gf::cmd::Meta kMeta{ - GF_MODULE_ID ".open_imap_controller", - GTrC::Noop("Open IMAP Controller"), - GTrC::Noop("Open IMAP Controller Dialog"), - "", - 0, - gf::cmd::kNeedsGuiThread}; + static constexpr CommandMeta kMeta{GF_MODULE_ID ".open_imap_controller", + GTrC::Noop("Open IMAP Controller"), + GTrC::Noop("Open IMAP Controller Dialog"), + "", + 0, + gf::cmd::kNeedsGuiThread}; using Args = gf::cmd::Unit; using Result = gf::cmd::Unit; }; |
