improve xschem load command (no warning if opening an already open file, if doing that from script)
This commit is contained in:
parent
e4e2ba37cc
commit
3fd24c69c4
|
|
@ -763,7 +763,8 @@ C {verilog_timescale.sym} 1050 -100 0 0 {name=s1 timestep="1ns" precision="1ns"
|
|||
2: eat backslashes </pre>
|
||||
<li><kbd> load f [symbol|force|noundoreset|nofullzoom]</kbd></li><pre>
|
||||
Load a new file 'f'.
|
||||
'force': do not ask to save modified file or warn if opening an already open file
|
||||
'force': do not ask to save modified file or warn if opening an already
|
||||
open file or opening a new(not existing) file.
|
||||
'noundoreset': do not reset the undo history
|
||||
'symbol': do not load symbols (used if loading a symbol instead of a schematic)
|
||||
'nofullzoom': do not do a fll zoom on new schematic.</pre>
|
||||
|
|
|
|||
|
|
@ -1845,7 +1845,7 @@ int xschem(ClientData clientdata, Tcl_Interp *interp, int argc, const char * arg
|
|||
xctx->currsch = 0;
|
||||
remove_symbols();
|
||||
dbg(1, "scheduler: undo_reset=%d\n", undo_reset);
|
||||
load_schematic(load_symbols, f, undo_reset, 0);
|
||||
load_schematic(load_symbols, f, undo_reset, !force);
|
||||
tclvareval("update_recent_file {", f, "}", NULL);
|
||||
my_strdup(_ALLOC_ID_, &xctx->sch_path[xctx->currsch], ".");
|
||||
xctx->sch_path_hash[xctx->currsch] = 0;
|
||||
|
|
|
|||
Loading…
Reference in New Issue