mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-30 05:44:52 +00:00
node: api review adjustements part I (#3766)
* Update api/node/src/types/brush.rs Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Update tests/cases/callbacks/handler_with_arg.slint Co-authored-by: Olivier Goffart <olivier.goffart@slint.dev> --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Olivier Goffart <olivier.goffart@slint.dev>
This commit is contained in:
parent
081e7fe456
commit
0045787e1c
18 changed files with 340 additions and 142 deletions
|
@ -20,7 +20,7 @@ for (let i = tiles.length - 1; i > 0; i--) {
|
|||
let model = new slint.ArrayModel(tiles);
|
||||
mainWindow.memory_tiles = model;
|
||||
|
||||
mainWindow.check_if_pair_solved.setHandler(function () {
|
||||
mainWindow.check_if_pair_solved = function () {
|
||||
let flipped_tiles = [];
|
||||
tiles.forEach((tile, index) => {
|
||||
if (tile.image_visible && !tile.solved) {
|
||||
|
@ -60,7 +60,7 @@ mainWindow.check_if_pair_solved.setHandler(function () {
|
|||
|
||||
}
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
mainWindow.run();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue