File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -658,7 +658,7 @@ function App:view(window)
658658 width = " auto" ,
659659 })
660660 :withChildren ({
661- Element .from (" arisu v0.3 .0" ):withStyle ({
661+ Element .from (" arisu v0.4 .0" ):withStyle ({
662662 align = " center" ,
663663 padding = { left = 10 },
664664 }),
@@ -714,6 +714,7 @@ function App:update(message, window)
714714 self .currentColor
715715 )
716716 self .isDrawing = true
717+ self .plugins .ui :refreshView (window )
717718 elseif self .currentAction .tool == " select" then
718719 local x = (message .x / message .elementWidth ) * 800
719720 local y = (message .y / message .elementHeight ) * 600
@@ -726,13 +727,15 @@ function App:update(message, window)
726727 self .currentColor
727728 )
728729 self .isDrawing = true
730+ self .plugins .ui :refreshView (window )
729731 elseif self .currentAction .tool == " eraser" then
730732 self .resources .compute :erase (
731733 (message .x / message .elementWidth ) * 800 ,
732734 (message .y / message .elementHeight ) * 600 ,
733735 10
734736 )
735737 self .isDrawing = true
738+ self .plugins .ui :refreshView (window )
736739 end
737740 elseif message .type == " StopDrawing" then
738741 if self .currentAction .tool == " select" and self .currentAction .start then
You can’t perform that action at this time.
0 commit comments