mirror of
https://github.com/aseprite/aseprite.git
synced 2025-02-12 03:39:51 +00:00
Wait data recovery background thread cancelation on palette changes
This commit is contained in:
parent
5da6dc514a
commit
ac44c4ab97
@ -1067,7 +1067,7 @@ void ColorBar::onTimerTick()
|
||||
|
||||
// Redraw all editors
|
||||
try {
|
||||
ContextWriter writer(UIContext::instance());
|
||||
ContextWriter writer(UIContext::instance(), 500);
|
||||
Document* document(writer.document());
|
||||
if (document != NULL)
|
||||
document->notifyGeneralUpdate();
|
||||
@ -1149,7 +1149,7 @@ void ColorBar::updateCurrentSpritePalette(const char* operationName)
|
||||
if (UIContext::instance()->activeDocument() &&
|
||||
UIContext::instance()->activeDocument()->sprite()) {
|
||||
try {
|
||||
ContextWriter writer(UIContext::instance());
|
||||
ContextWriter writer(UIContext::instance(), 500);
|
||||
Document* document(writer.document());
|
||||
Sprite* sprite(writer.sprite());
|
||||
Palette* newPalette = get_current_palette(); // System current pal
|
||||
|
Loading…
x
Reference in New Issue
Block a user