mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
Installed packages will be blessed.
For now, everything is considered blessed, because we are not yet using installers everywhere. git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@912 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -176,9 +176,9 @@ PackagesWindow::PackagesWindow(Window* parent, const InstallerP& installer)
|
||||
// add installer
|
||||
merge(installable_packages, new_intrusive1<DownloadableInstaller>(installer));
|
||||
// mark all packages in the installer for installation
|
||||
FOR_EACH(p, installable_packages) {
|
||||
if (p->installer) {
|
||||
set_package_action(installable_packages, p, PACKAGE_INSTALL | where);
|
||||
FOR_EACH(ip, installable_packages) {
|
||||
if (ip->can(PACKAGE_INSTALL)) {
|
||||
set_package_action(installable_packages, ip, PACKAGE_INSTALL | where);
|
||||
}
|
||||
}
|
||||
// update window
|
||||
@@ -271,7 +271,7 @@ void PackagesWindow::onOk(wxCommandEvent& ev) {
|
||||
if ((ip->action & PACKAGE_INSTALL) && ip->installer && !ip->installer->installer) ++to_download;
|
||||
if (ip->action & PACKAGE_REMOVE) {
|
||||
to_remove++;
|
||||
if (ip->status & PACKAGE_MODIFIED) with_modifications++;
|
||||
if ((ip->status & PACKAGE_MODIFIED) == PACKAGE_MODIFIED) with_modifications++;
|
||||
}
|
||||
}
|
||||
// Warn about removing
|
||||
|
||||
Reference in New Issue
Block a user