Skip to content

[BUGFIX] GUI: HDD mode checkbox reads its default from verbose - #301

Merged
treee111 merged 1 commit into
release/v4.4.0from
bugfix/hdd-mode-checkbox-default
Aug 26, 2026
Merged

treee111 merged 1 commit into
release/v4.4.0from
bugfix/hdd-mode-checkbox-default

Conversation

@treee111

Copy link
Copy Markdown
Owner

This PR…

Fixes the default value of the "Use mapwriter HDD mode" checkbox in the GUI (Advanced settings tab).

Considerations and implementations

CheckbuttonsTab2 builds the checkbox with oInputData.verbose as its default:

self.checkb_mapwriter_ram_hdd_val = create_checkbox(self, oInputData.verbose,
                                          "Use mapwriter HDD mode", 5)

It should be oInputData.hdd_mode. Both attributes default to False, so the wrong pre-selection is not visible today — the checkbox simply mirrors the verbose default. It becomes wrong as soon as either default changes or InputData is pre-filled from somewhere other than the constructor.

The value written back on "Create map" already reads the right variable (GuiInput.read_input_from_gui → self.o_input_data.hdd_mode = tab2.first.checkb_mapwriter_ram_hdd_val.get()), so only the default was affected.

Also corrects the indentation of the continuation line, which pylint flags.

How to test

  1. Start the GUI, open "Advanced settings" — the "Use mapwriter HDD mode" checkbox is unchecked, unchanged from before.
  2. Temporarily set self.hdd_mode = True in InputData.__init__ and restart the GUI — the checkbox is now pre-selected. Before this change it stayed unchecked.

Pull Request Checklist

🤖 Generated with Claude Code

… verbose

The "Use mapwriter HDD mode" checkbox got its default value from
oInputData.verbose. Both default to False, so the wrong default is not
visible today, but the checkbox would follow the verbose setting instead
of the hdd_mode setting.

Also fixes the indentation of the continuation line.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@treee111
treee111 merged commit 39b7885 into release/v4.4.0 Aug 26, 2026
2 checks passed
@treee111
treee111 deleted the bugfix/hdd-mode-checkbox-default branch August 26, 2026 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant