mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 14:03:55 +02:00
When user is asked about disk cache, allow them to say no.
This commit is contained in:
parent
6928984448
commit
cd44094efa
1 changed files with 4 additions and 3 deletions
|
@ -138,9 +138,10 @@ void DiskCacheEditor::refresh() {
|
|||
void DiskCacheEditor::clear() {
|
||||
QMessageBox::StandardButton buttonClicked =
|
||||
OffscreenUi::question(_dialog, "Clearing disk cache",
|
||||
"You are about to erase all the content of the disk cache,"
|
||||
"are you sure you want to do that?");
|
||||
if (buttonClicked == QMessageBox::Yes) {
|
||||
"You are about to erase all the content of the disk cache, "
|
||||
"are you sure you want to do that?",
|
||||
QMessageBox::Ok | QMessageBox::Cancel);
|
||||
if (buttonClicked == QMessageBox::Ok) {
|
||||
if (auto cache = NetworkAccessManager::getInstance().cache()) {
|
||||
qDebug() << "DiskCacheEditor::clear(): Clearing disk cache.";
|
||||
cache->clear();
|
||||
|
|
Loading…
Reference in a new issue