Skip to content

Commit

Permalink
Fixed|UI|Resources: Package compatibility dialog loads/unloads files …
Browse files Browse the repository at this point in the history
…twice

The dialog was still doing a manual load/unload in addition to the
automatic one carried out by PackageLoader.
  • Loading branch information
skyjake committed Mar 5, 2017
1 parent 2aea245 commit 0214dee
Showing 1 changed file with 5 additions and 5 deletions.
Expand Up @@ -186,10 +186,10 @@ DENG2_PIMPL(PackageCompatibilityDialog)
qDebug() << "unloading excess" << loaded.at(i);

pkgLoader.unload(loaded.at(i));
if (DataBundle const *bundle = DataBundle::bundleForPackage(loaded.at(i)))
/*if (DataBundle const *bundle = DataBundle::bundleForPackage(loaded.at(i)))
{
File1::tryUnload(*bundle);
}
}*/
loaded.removeAt(i);
}

Expand All @@ -199,10 +199,10 @@ DENG2_PIMPL(PackageCompatibilityDialog)
qDebug() << "loading wanted" << wanted.at(i);

pkgLoader.load(wanted.at(i));
if (DataBundle const *bundle = DataBundle::bundleForPackage(wanted.at(i)))
/*if (DataBundle const *bundle = DataBundle::bundleForPackage(wanted.at(i)))
{
File1::tryLoad(*bundle);
}
}*/
}

qDebug() << DoomsdayApp::loadedPackagesAffectingGameplay();
Expand All @@ -211,7 +211,7 @@ DENG2_PIMPL(PackageCompatibilityDialog)
updating->setOpacity(1, 0.3);

// Refresh resources.
DD_UpdateEngineState();
//DD_UpdateEngineState();

self().accept();
}
Expand Down

0 comments on commit 0214dee

Please sign in to comment.