Differences From Artifact [4cc6400795e7a727]:
- File
src/gui.d
- 2012-07-14 12:51:48 - part of checkin [8a59754e60] on branch trunk - GUI auto solver. (user: kinaba) [annotate]
To Artifact [e56b333ba2eacac4]:
- File
src/gui.d
- 2012-07-14 13:49:28 - part of checkin [976b6210b7] on branch trunk - Fixed exception from timered-run. (user: kinaba) [annotate]
22 if(automate) { 22 if(automate) {
23 Timer t = new Timer; 23 Timer t = new Timer;
24 t.interval = 100; 24 t.interval = 100;
25 t.tick ~= (Timer sender, EventArgs ea){ 25 t.tick ~= (Timer sender, EventArgs ea){
26 fn(solver.single_step()); 26 fn(solver.single_step());
27 }; 27 };
28 t.start(); 28 t.start();
> 29 this.closing ~= (Form f,CancelEventArgs c){t.stop();};
29 } 30 }
30 Application.run(this); 31 Application.run(this);
31 } 32 }
32 33
33 override void on_game_changed(char c, const(Game) g, bool finished) 34 override void on_game_changed(char c, const(Game) g, bool finished)
34 { 35 {
35 draw(g); 36 draw(g);