feat: add metadata get/delete via mod id
This is, in many cases, more reliable than name comparisons, so it's useful specially in cases where a mod changes name between versions Signed-off-by: flow <flowlnlnln@gmail.com>
This commit is contained in:
parent
9a07ede615
commit
91a5c4bdcb
6 changed files with 57 additions and 12 deletions
|
@ -44,7 +44,7 @@ void LocalModUpdateTask::executeTask()
|
|||
{
|
||||
setStatus(tr("Updating index for mod:\n%1").arg(m_mod.name));
|
||||
|
||||
auto old_metadata = Metadata::get(m_index_dir, m_mod.name);
|
||||
auto old_metadata = Metadata::get(m_index_dir, m_mod.addonId);
|
||||
if (old_metadata.isValid()) {
|
||||
emit hasOldMod(old_metadata.name, old_metadata.filename);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue