ui: Explain differences of errors and how to fix them (issue #501)
* added help button next to filters in error table * added menu action Help -> Fixing Errors * added help button on indexing dialog * show help message after first time indexing with errors, if not seen already
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#include "component/controller/ErrorController.h"
|
||||
|
||||
#include "data/access/StorageAccess.h"
|
||||
#include "settings/ApplicationSettings.h"
|
||||
|
||||
ErrorController::ErrorController(StorageAccess* storageAccess)
|
||||
: m_storageAccess(storageAccess)
|
||||
@@ -46,6 +47,29 @@ void ErrorController::handleMessage(MessageNewErrors* message)
|
||||
|
||||
}
|
||||
|
||||
void ErrorController::handleMessage(MessageShowErrorHelpMessage* message)
|
||||
{
|
||||
ApplicationSettings* appSettings = ApplicationSettings::getInstance().get();
|
||||
if (!message->force && appSettings->getSeenErrorHelpMessage())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (!message->force)
|
||||
{
|
||||
ErrorCountInfo info = m_storageAccess->getErrorCount();
|
||||
if (!info.total)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
appSettings->setSeenErrorHelpMessage(true);
|
||||
appSettings->save();
|
||||
|
||||
getView()->showErrorHelpMessage();
|
||||
}
|
||||
|
||||
void ErrorController::handleMessage(MessageShowErrors* message)
|
||||
{
|
||||
if (message->errorId)
|
||||
|
||||
Reference in New Issue
Block a user