Skip to content

Commit

Permalink
Devices are now all restarted after last polling window closes.
Browse files Browse the repository at this point in the history
  • Loading branch information
walshie4 committed Jun 14, 2015
1 parent d9abbc5 commit 57a6ec0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Antumbra/Controller/MainWindowController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,9 @@ private void UpdatePollingSelection(int id, int x, int y, int width, int height)
dev.settings.y = y;
dev.settings.width = width;
dev.settings.height = height;
this.deviceMgr.Start(dev.id);//re-start device
this.pollingIndex -= 1;
if (this.pollingIndex == 0) {//time to reset btn text
if (this.pollingIndex == 0) {//time to reset btn text & restart
this.deviceMgr.Start(-1);//re-start all
this.window.SetPollingBtnText("Set Capture Area");
}
}
Expand Down

0 comments on commit 57a6ec0

Please sign in to comment.