Commit 813aee385b5140b1dfdc102fec7a584f1c0b1a54

Con Kolivas 2011-09-23T10:22:06

Show menu again after enable, disable and restart GPU.

diff --git a/main.c b/main.c
index d46ec35..9c3b127 100644
--- a/main.c
+++ b/main.c
@@ -3255,6 +3255,7 @@ retry:
 
 			tq_push(thr->q, &ping);
 		}
+		goto retry;
 	} if (!strncasecmp(&input, "d", 1)) {
 		if (selected)
 			selected = curses_int("Select GPU to disable");
@@ -3267,6 +3268,7 @@ retry:
 			goto retry;
 		}
 		gpu_devices[selected] = false;
+		goto retry;
 	} else if (!strncasecmp(&input, "r", 1)) {
 		if (selected)
 			selected = curses_int("Select GPU to attempt to restart");
@@ -3276,6 +3278,7 @@ retry:
 		}
 		wlogprint("Attempting to restart threads of GPU %d\n", selected);
 		reinit_device(&gpus[selected]);
+		goto retry;
 	} else if (adl_active && (!strncasecmp(&input, "c", 1))) {
 		if (selected)
 			selected = curses_int("Select GPU to change settings on");