mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-30 13:51:13 +00:00
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:
parent
ee9f1a52a8
commit
7b61e455eb
17 changed files with 361 additions and 66 deletions
|
@ -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)
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue