ui: Refresh UI state only after every style refresh in each view finished (#917)
Separated UI refresh into 'style' and 'state' refresh to avoid race condition between task scheduler thread and UI thread that affected code view state. fixes #916
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
#ifndef MESSAGE_REFRESH_UI_STATE_H
|
||||
#define MESSAGE_REFRESH_UI_STATE_H
|
||||
|
||||
#include "Message.h"
|
||||
|
||||
class MessageRefreshUIState: public Message<MessageRefreshUIState>
|
||||
{
|
||||
public:
|
||||
static const std::string getStaticType()
|
||||
{
|
||||
return "MessageRefreshUIState";
|
||||
}
|
||||
|
||||
MessageRefreshUIState(bool isAfterIndexing) : isAfterIndexing(isAfterIndexing) {}
|
||||
|
||||
bool isAfterIndexing = false;
|
||||
};
|
||||
|
||||
#endif // MESSAGE_REFRESH_UI_STATE_H
|
||||
Reference in New Issue
Block a user