Simulator tab interface doesn't let you switch to a new sim type
Description
The simulator interface is tabbed so you can have multiple simulations. However it doesn't work; if you try to run multiple kinds of sims, the simulator will just repeatedly run the first type of sim selected, creating a new tab every time.
This worked correctly in v6.
The repro steps should make the issue clear.
Steps to reproduce
- Open attached schematic (but any will work) probe_mosfet_currents.zip
- Open simulator
- Click sim command button
- Select .op, click OK
- Simulator opens a tab for your .op sim
- Click sim command button
- Select .tran, timestep=1n, tfinal=1m (settings don't matter), OK
- Now there's a new tab for the .tran sim, which hasn't simmed yet
- Click Run/Stop Simulation
- Simulator opens a third tab, which runs a .op sim
- There's no way to run your .tran sim without closing and re-opening the simulator, and then only running a transient sim.
KiCad Version
Application: KiCad Schematic Editor arm64 on arm64
Version: (7.0.0-rc2-249-gc22fb390ec), release build
Libraries:
wxWidgets 3.2.1
FreeType 2.12.1
HarfBuzz 5.3.1
FontConfig 2.14.0
Platform: macOS Monterey Version 12.2.1 (Build 21D62), 64 bit, Little endian, wxMac
wxWidgets: 3.2.1 (wchar_t,wx containers)
Boost: 1.80.0
OCC: 7.6.3
Curl: 7.77.0
ngspice: 38
Compiler: Clang 13.0.0 with C++ ABI 1002
Build settings:
KICAD_SPICE=ON