Initial implementation of a Slint event loop sitting on top of Node.js

At the moment this is implemented using polling.

cc #2477
This commit is contained in:
Simon Hausmann 2023-08-09 11:34:20 +02:00 committed by Simon Hausmann
parent ee9f1a52a8
commit 7b61e455eb
17 changed files with 361 additions and 66 deletions

View file

@ -50,13 +50,13 @@ mainWindow.check_if_pair_solved = function () {
model.setRowData(tile2_index, tile2);
} else {
mainWindow.disable_tiles = true;
slint.Timer.singleShot(1000, () => {
setTimeout(() => {
mainWindow.disable_tiles = false;
tile1.image_visible = false;
model.setRowData(tile1_index, tile1);
tile2.image_visible = false;
model.setRowData(tile2_index, tile2);
})
}, 1000)
}
}