diff options
| author | Jonathan Feenstra <26406078+JonathanFeenstra@users.noreply.github.com> | 2025-08-18 07:55:52 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-18 07:55:52 +0200 |
| commit | d52fcccb831b63dc1add068084369543d0a45246 (patch) | |
| tree | 3d3009a7e0ad3b477b64b349a1bdc7fd1e0d5f62 /src/modlistcontextmenu.cpp | |
| parent | 6c64236e2e7a8e2883b7656657e0fac329d5621b (diff) | |
Add author and uploader columns to mod list (#2269)
Diffstat (limited to 'src/modlistcontextmenu.cpp')
| -rw-r--r-- | src/modlistcontextmenu.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/modlistcontextmenu.cpp b/src/modlistcontextmenu.cpp index fefb1d73..d2c8e2a1 100644 --- a/src/modlistcontextmenu.cpp +++ b/src/modlistcontextmenu.cpp @@ -443,6 +443,12 @@ void ModListContextMenu::addBackupActions(ModInfo::Ptr mod) }); } + if (!mod->uploaderUrl().isEmpty()) { + addAction(tr("Visit the uploader's profile"), [=]() { + m_actions.visitUploaderProfile(m_selected); + }); + } + const auto url = mod->parseCustomURL(); if (url.isValid()) { addAction(tr("Visit on %1").arg(url.host()), [=]() { @@ -612,6 +618,12 @@ void ModListContextMenu::addRegularActions(ModInfo::Ptr mod) }); } + if (!mod->uploaderUrl().isEmpty()) { + addAction(tr("Visit the uploader's profile"), [=]() { + m_actions.visitUploaderProfile(m_selected); + }); + } + const auto url = mod->parseCustomURL(); if (url.isValid()) { addAction(tr("Visit on %1").arg(url.host()), [=]() { |
