Allow to delete data directory from application view

* allow to re-init applicazion list (needed because directories can be deleted)
* context menu for "delete data directory"
This commit is contained in:
Klaus Basan
2018-11-28 00:07:26 +01:00
parent d704a8aeab
commit 9f6cb9a72f
9 changed files with 108 additions and 49 deletions

View File

@@ -419,7 +419,7 @@ namespace BlackGui
void CCopyConfigurationComponent::initOtherSwiftVersions()
{
ui->cb_OtherVersions->clear();
const QMap<QString, CApplicationInfo> otherVersions = CDirectoryUtils::applicationDataDirectoryMapWithoutCurrentVersion();
const QMap<QString, CApplicationInfo> otherVersions = CDirectoryUtils::applicationDataDirectoryMapWithoutCurrentVersion(true);
for (const QString &directory : otherVersions.keys())
{
const CApplicationInfo info(otherVersions.value(directory));