clear "Simulate" button background if new window/tab is created while simulation running in original window

This commit is contained in:
Stefan Frederik 2022-08-18 11:26:41 +02:00
parent c1d229b917
commit 9b3251b85e
1 changed files with 2 additions and 0 deletions

View File

@ -1117,6 +1117,7 @@ static void create_new_window(int *window_count, const char *fname)
return; /* no more free slots */
}
(*window_count)++;
tclvareval("[xschem get top_path].menubar.simulate configure -bg $simulate_bg", NULL);
tcleval(".menubar.view.menu entryconfigure 21 -state disabled");
n = -1;
for(i = 1; i < MAX_NEW_WINDOWS; i++) { /* search 1st free slot */
@ -1207,6 +1208,7 @@ static void create_new_tab(int *window_count, const char *fname)
return; /* no more free slots */
}
(*window_count)++;
tclvareval("[xschem get top_path].menubar.simulate configure -bg $simulate_bg", NULL);
tcleval(".menubar.view.menu entryconfigure 21 -state disabled");
n = -1;
for(i = 1; i < MAX_NEW_WINDOWS; i++) { /* search 1st free slot */