From 27114408ec097fc7ecad6f6e403ce9cc7e3c9464 Mon Sep 17 00:00:00 2001 From: stefan schippers Date: Sun, 5 Nov 2023 02:42:06 +0100 Subject: [PATCH] reset simulate and netlist button colors on load new file --- src/actions.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/actions.c b/src/actions.c index 0cd7b6ef..1eb84ae6 100644 --- a/src/actions.c +++ b/src/actions.c @@ -148,7 +148,7 @@ int set_modify(int mod) if(mod == 0 || mod == 1) { xctx->modified = mod; } - if(mod) { + if(mod == 1 || (mod == 0 && xctx->prev_set_modify) || mod == -2) { tclvareval(xctx->top_path, ".menubar.netlist configure -bg $simulate_bg", NULL); tclvareval(xctx->top_path, ".menubar.simulate configure -bg $simulate_bg", NULL); }