Fix header refresh bug

This commit is contained in:
MathemanFlo
2022-03-09 10:14:39 +01:00
parent 0be438db6a
commit 72268ef3ba
+5
View File
@@ -4,6 +4,7 @@ import arm.sys.Path;
import arm.sys.File;
import arm.ui.UINodes;
import arm.ui.UIBox;
import arm.ui.UIHeader;
import arm.Project;
class ImportAsset {
@@ -39,6 +40,10 @@ class ImportAsset {
UINodes.inst.getNodes().nodesDrag = false;
UINodes.inst.hwnd.redraws = 2;
}
if (Context.tool == ToolColorId && Project.assetNames.length == 1) {
UIHeader.inst.headerHandle.redraws = 2;
Context.ddirty = 2;
}
}
else if (Path.isFont(path)) {
ImportFont.run(path);