mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-03 17:14:46 +00:00
Changed: Update profiles files after changing them
--HG-- branch : develop
This commit is contained in:
parent
b82d3deea9
commit
b8ec5a2bc3
3 changed files with 33 additions and 3 deletions
|
@ -123,12 +123,30 @@ void CMainWindow::onConfigureClicked()
|
|||
}
|
||||
|
||||
void CMainWindow::onProfiles()
|
||||
{
|
||||
bool updated = false;
|
||||
|
||||
{
|
||||
CProfilesDialog dialog(this);
|
||||
|
||||
if (dialog.exec())
|
||||
{
|
||||
updateProfiles();
|
||||
|
||||
updated = true;
|
||||
}
|
||||
}
|
||||
|
||||
if (updated)
|
||||
{
|
||||
COperationDialog dialog(this);
|
||||
|
||||
dialog.setOperation(COperationDialog::OperationUpdateProfiles);
|
||||
|
||||
if (!dialog.exec())
|
||||
{
|
||||
// aborted
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -102,6 +102,10 @@ void COperationDialog::processNextStep()
|
|||
processMigrateNextStep();
|
||||
break;
|
||||
|
||||
case OperationUpdateProfiles:
|
||||
processUpgradeProfilesNextStep();
|
||||
break;
|
||||
|
||||
case OperationInstall:
|
||||
processInstallNextStep();
|
||||
break;
|
||||
|
@ -201,8 +205,14 @@ void COperationDialog::processMigrateNextStep()
|
|||
}
|
||||
}
|
||||
|
||||
void COperationDialog::processUpdateProfilesNextStep()
|
||||
{
|
||||
// TODO: implement
|
||||
}
|
||||
|
||||
void COperationDialog::processInstallNextStep()
|
||||
{
|
||||
// TODO: implement
|
||||
}
|
||||
|
||||
void COperationDialog::processUninstallNextStep()
|
||||
|
|
|
@ -42,6 +42,7 @@ public:
|
|||
{
|
||||
OperationNone,
|
||||
OperationMigrate,
|
||||
OperationUpdateProfiles,
|
||||
OperationInstall,
|
||||
OperationUninstall
|
||||
};
|
||||
|
@ -92,6 +93,7 @@ protected:
|
|||
|
||||
void processNextStep();
|
||||
void processMigrateNextStep();
|
||||
void processUpdateProfilesNextStep();
|
||||
void processInstallNextStep();
|
||||
void processUninstallNextStep();
|
||||
|
||||
|
|
Loading…
Reference in a new issue