slightly changed layout for logs and cache

This commit is contained in:
fourtf
2019-09-03 13:09:33 +02:00
parent 577e2e0a21
commit 1c0ed6b1aa
3 changed files with 45 additions and 19 deletions
+12 -4
View File
@@ -430,11 +430,19 @@ void GeneralPage::initLayout(SettingsLayout &layout)
cachePathLabel->setToolTip(newPath);
});
layout.addButton("Choose", [this]() {
getSettings()->cachePath = QFileDialog::getExistingDirectory(this);
});
// Choose and reset buttons
{
auto box = new QHBoxLayout;
layout.addButton("Reset", []() { getSettings()->cachePath = ""; });
box->addWidget(layout.makeButton("Choose cache path", [this]() {
getSettings()->cachePath = QFileDialog::getExistingDirectory(this);
}));
box->addWidget(layout.makeButton(
"Reset", []() { getSettings()->cachePath = ""; }));
box->addStretch(1);
layout.addLayout(box);
}
layout.addTitle("AppData");
layout.addDescription("All local files like settings and cache files are "