mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-06-13 05:37:42 +02:00
NOISSUE When changing version of or installing a package, remove customized version
This commit is contained in:
@ -1172,10 +1172,15 @@ bool ComponentList::setComponentVersion(const QString& uid, const QString& versi
|
|||||||
auto iter = d->componentIndex.find(uid);
|
auto iter = d->componentIndex.find(uid);
|
||||||
if(iter != d->componentIndex.end())
|
if(iter != d->componentIndex.end())
|
||||||
{
|
{
|
||||||
|
ComponentPtr component = *iter;
|
||||||
// set existing
|
// set existing
|
||||||
(*iter)->setVersion(version);
|
if(component->revert())
|
||||||
(*iter)->setImportant(important);
|
{
|
||||||
return true;
|
component->setVersion(version);
|
||||||
|
component->setImportant(important);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user