[Bug]: Preset file path selection is not propagated back to Main #8
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Changing the preset file in
PresetsTab._open_file()updates the label in the tab, but does not updateMain.preset_path.Why this is a bug
The UI suggests that a new preset file was selected, but the actual reload path in
Main.refresh_presets_view()still uses the oldself.preset_path.That means the signal/slot chain is incomplete and the selected file path is not actually applied.
Fix approach
Add a signal such as:
from
PresetsTab, emit the selected path, and updateMain.preset_pathin a connected slot.Status
Still open.
Not fixed in the current v0.2 working copy.
Preset file path selection is not propagated back to Mainto [Bug]: Preset file path selection is not propagated back to MainPatched file:
SDG2042X_V0.2.4.py
What was changed:
Additional fix during Bug #8 work:
The first patch only propagated the selected preset file path back to
Main, but the preset-name save path was still incomplete.PresetsTab._save_names()emittedrename_slot, whileMain.on_rename_slot()existed but was not connected in the main-window wiring. As a result, edited slot names in the Presets tab were not written back to the selected preset file.This was corrected in v0.2.5 by wiring
t_presets.rename_slottoMain.on_rename_slot(). Manual test passed: after selecting a different preset file, editing a slot name, saving, and reloading, theSLOTx_NAME=entry is now correctly updated in the active file.