Changed: Update profiles files after changing them

This commit is contained in:
kervala 2016-06-12 13:54:47 +02:00
parent 22773a6dd6
commit 55e7ba97a1
3 changed files with 33 additions and 3 deletions

View file

@ -123,12 +123,30 @@ void CMainWindow::onConfigureClicked()
} }
void CMainWindow::onProfiles() void CMainWindow::onProfiles()
{
bool updated = false;
{ {
CProfilesDialog dialog(this); CProfilesDialog dialog(this);
if (dialog.exec()) if (dialog.exec())
{ {
updateProfiles(); updateProfiles();
updated = true;
}
}
if (updated)
{
COperationDialog dialog(this);
dialog.setOperation(COperationDialog::OperationUpdateProfiles);
if (!dialog.exec())
{
// aborted
}
} }
} }

View file

@ -102,6 +102,10 @@ void COperationDialog::processNextStep()
processMigrateNextStep(); processMigrateNextStep();
break; break;
case OperationUpdateProfiles:
processUpgradeProfilesNextStep();
break;
case OperationInstall: case OperationInstall:
processInstallNextStep(); processInstallNextStep();
break; break;
@ -201,8 +205,14 @@ void COperationDialog::processMigrateNextStep()
} }
} }
void COperationDialog::processUpdateProfilesNextStep()
{
// TODO: implement
}
void COperationDialog::processInstallNextStep() void COperationDialog::processInstallNextStep()
{ {
// TODO: implement
} }
void COperationDialog::processUninstallNextStep() void COperationDialog::processUninstallNextStep()

View file

@ -42,6 +42,7 @@ public:
{ {
OperationNone, OperationNone,
OperationMigrate, OperationMigrate,
OperationUpdateProfiles,
OperationInstall, OperationInstall,
OperationUninstall OperationUninstall
}; };
@ -92,6 +93,7 @@ protected:
void processNextStep(); void processNextStep();
void processMigrateNextStep(); void processMigrateNextStep();
void processUpdateProfilesNextStep();
void processInstallNextStep(); void processInstallNextStep();
void processUninstallNextStep(); void processUninstallNextStep();