Schema Editor > Spice Simulator: Saving simulation workbook doesn't always remove "unsaved" flag
Description
After performing certain changes to a simulation, saving the simulation workbook doesn't remove the "unsaved" flag (asterisk in window title), and when subsequently closing the window, a Save changes
dialog appears even though all changes have been saved.
The issue can be consistently reproduced on MacOs (ARM).
Steps to reproduce
Sample KiCad 8.0 project SimulationSave.zip enclosed.
- Open the
SimulationSave.kicad_sch
schematics in Schematic Editor - Open the Simulation Window (
Inspect > Simulator
) - Move (drag using mouse) the plot legend in the simulation window (orange circle in screenshot).
- Notice: the asterisk appearing in the title bar indicating unsaved changes (orange arrow in screenshot)
- Save the workbook (
File > Save
).
Notice: the asterisk in the window title doews not disappear. - Close the simulation window (
File > Close
) - A
Save changes
dialog appears - Regardless of whether
Discard Changes
orSave
is chosen, the change made (moved legend) was saved when saving in step 6, and the contents of the.wbk
file do not change as a result of pressingSave
.
The above behavior only appears when making certain changes (e.g. moving legend) but not when making other types of changes (e.g. changing signals to be plotted).
KiCad Version
Application: arm64 on arm64
Version: 8.0.0, release build
Libraries:
wxWidgets 3.2.4
FreeType 2.13.2
HarfBuzz 8.2.0
FontConfig 2.14.2
libcurl/7.85.0 (SecureTransport) LibreSSL/3.3.6 zlib/1.2.11 nghttp2/1.47.0
Platform: macOS Ventura Version 13.1 (Build 22C65), 64 bit, Little endian, wxMac
Build Info:
Date: Feb 23 2024 14:47:16
wxWidgets: 3.2.4 (wchar_t,wx containers)
Boost: 1.82.0
OCC: 7.7.2
Curl: 7.87.0
ngspice: 42
Compiler: Clang 14.0.3 with C++ ABI 1002
Build settings:
Edited by Morten Hattesen