Skip to content

Commit

Permalink
fixed compile errors for new nim version
Browse files Browse the repository at this point in the history
  • Loading branch information
Nimaoth committed Feb 10, 2024
1 parent 458aca5 commit 454d4fc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/absytree_js.nim
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ proc runApp(): Future[void] {.async.} =
discard rend.onMouseRelease.subscribe proc(event: auto): void = requestRender()
# discard rend.onMouseMove.subscribe proc(event: auto): void = requestRender()
discard rend.onScroll.subscribe proc(event: auto): void = requestRender()
discard rend.onCloseRequested.subscribe proc(_: auto) = requestRender()
discard rend.onCloseRequested.subscribe proc() = requestRender()
discard rend.onResized.subscribe proc(redrawEverything: bool) = requestRender(redrawEverything)

initializedEditor = true
Expand Down
2 changes: 1 addition & 1 deletion src/app.nim
Original file line number Diff line number Diff line change
Expand Up @@ -766,7 +766,7 @@ proc newEditor*(backend: api.Backend, platform: Platform, options = AppOptions()
discard platform.onMouseMove.subscribe proc(event: auto): void = self.handleMouseMove(event.pos, event.delta, event.modifiers, event.buttons)
discard platform.onScroll.subscribe proc(event: auto): void = self.handleScroll(event.scroll, event.pos, event.modifiers)
discard platform.onDropFile.subscribe proc(event: auto): void = self.handleDropFile(event.path, event.content)
discard platform.onCloseRequested.subscribe proc(_: auto) = self.closeRequested = true
discard platform.onCloseRequested.subscribe proc() = self.closeRequested = true

self.timer = startTimer()
self.frameTimer = startTimer()
Expand Down
2 changes: 1 addition & 1 deletion src/platform/browser_platform.nim
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ proc drawNode(builder: UINodeBuilder, platform: BrowserPlatform, element: var El
childrenToRemove.add oldChildElement
elif not childElement.isNil:
if childElement.parentElement != element:
newChildren.add (childElement, insertRel, insertNeighbor)
newChildren.add (childElement, insertRel, insertNeighbor.Node)

for i in k..<existingCount:
childrenToRemove.add element.children[i].Element

0 comments on commit 454d4fc

Please sign in to comment.