ui: Properly clear highlighting cache when switching provider

Fixes #471
This commit is contained in:
WerWolv
2022-03-13 17:33:27 +01:00
parent 97bfb4004b
commit 74ef9ece30
3 changed files with 38 additions and 21 deletions

View File

@@ -30,6 +30,12 @@ namespace hex::plugin::builtin {
u32 m_selectedPatternFile = 0;
bool m_runAutomatically = false;
bool m_lastEvaluationProcessed = true;
bool m_lastEvaluationResult = false;
std::optional<pl::PatternLanguageError> m_lastEvaluationError;
std::vector<std::pair<pl::LogConsole::Level, std::string>> m_lastEvaluationLog;
std::map<std::string, pl::Token::Literal> m_lastEvaluationOutVars;
std::atomic<u32> m_runningEvaluators = 0;
std::atomic<u32> m_runningParsers = 0;