Skip to content

Commit

Permalink
changed e.data to e.getString() and set the root folder of the second…
Browse files Browse the repository at this point in the history
… window (removes the "Resource Not Available" error)
  • Loading branch information
neroist committed Dec 30, 2023
1 parent bcaa794 commit c27b81f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/serve_folder/serve_folder.nim
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ proc main =
of EventsMouseClick:
echo "Click"
of EventsNavigation:
echo "Starting navigation to: ", e.data
echo "Starting navigation to: ", e.getString()
else:
discard

Expand Down Expand Up @@ -88,6 +88,7 @@ proc main =

# Set root folder to current directory
window.rootFolder = currentSourcePath().parentDir()
window2.rootFolder = currentSourcePath().parentDir()

# Set window size
window.setSize(800, 600)
Expand Down

0 comments on commit c27b81f

Please sign in to comment.