reset simulate and netlist button colors on load new file

This commit is contained in:
stefan schippers 2023-11-05 02:42:06 +01:00
parent a6fa6135c9
commit 27114408ec
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}