mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-30 13:51:13 +00:00
Node.js tutoria: Use await when calling run()
As it happens, the run() call is the last call in the app, so it also works without await. But the moment somebody adds code after run(), they'd be surprised that it gets called "before" run. So await for good measure.
This commit is contained in:
parent
ee096f4386
commit
7576ea71f2
3 changed files with 3 additions and 3 deletions
|
@ -18,6 +18,6 @@ for (let i = tiles.length - 1; i > 0; i--) {
|
|||
let model = new slint.ArrayModel(tiles);
|
||||
mainWindow.memory_tiles = model;
|
||||
|
||||
mainWindow.run();
|
||||
await mainWindow.run();
|
||||
|
||||
// ANCHOR_END: main
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue