clear "Simulate" button background if new window/tab is created while simulation running in original window
This commit is contained in:
parent
c1d229b917
commit
9b3251b85e
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Reference in New Issue