Improve the pause button screen workflow (#216)

This commit is contained in:
Luis Uguina
2020-04-26 23:35:05 +10:00
committed by GitHub
parent d529da172a
commit aae5ec3254
6 changed files with 70 additions and 12 deletions

View File

@@ -138,6 +138,9 @@ public class Client {
while (this.running == true) {
this.renderingJob = null;
synchronized (this) {
if (this.suspended) {
this.gui.status("Client paused", true);
}
while (this.suspended) {
wait();
}
@@ -431,6 +434,7 @@ public class Client {
public void suspend() {
suspended = true;
this.gui.status("Client will pause when the current job finishes", true);
}
public synchronized void resume() {