ui: add dialog to warn about active "verbose indexer logging" on refresh

* also featuring: remove unnecessary call in ParserClientImpl
This commit is contained in:
malte_langkabel
2017-05-05 11:37:25 +02:00
parent da2b44bd25
commit c93d5aa9f0
2 changed files with 22 additions and 1 deletions
+22
View File
@@ -104,6 +104,28 @@ bool Project::refresh(bool forceRefresh)
std::shared_ptr<DialogView> dialogView = Application::getInstance()->getDialogView();
if (
ApplicationSettings::getInstance()->getLoggingEnabled() &&
ApplicationSettings::getInstance()->getVerboseIndexerLoggingEnabled() &&
Application::getInstance()->hasGUI()
)
{
std::vector<std::string> options;
options.push_back("Yes");
options.push_back("No");
int result = dialogView->confirm(
"Warning: You are about to index your project with the \"verbose indexer logging\" setting "
"enabled. This will cause a significant slowdown in indexing performance. Do you want to proceed?",
options
);
if (result == 1)
{
return false;
}
}
if (!forceRefresh && needsFullRefresh && question.size() && Application::getInstance()->hasGUI())
{
std::vector<std::string> options;