From 2eb10c5b71a583bbb99af8cffa5e39e1287d3992 Mon Sep 17 00:00:00 2001 From: rokosun Date: Tue, 26 Dec 2023 18:48:04 +0000 Subject: [PATCH] Check if thread is running before passing it to joinThread() --- layoutSwitcher.nim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/layoutSwitcher.nim b/layoutSwitcher.nim index 914f814..72add27 100644 --- a/layoutSwitcher.nim +++ b/layoutSwitcher.nim @@ -166,4 +166,5 @@ method view(app: AppState): Widget = brew(appID, gui(App()), icons=[iconsDir], stylesheets=[newStylesheet(gtkCSS)]) -joinThread(thread) +if running(thread): + joinThread(thread)