Skip to content

Don't warn on closing setup window when saved settings are valid - #113

Open
Bazooper-blip wants to merge 1 commit into
integrated-application-development:masterfrom
Bazooper-blip:setup-form-close-prompt
Open

Don't warn on closing setup window when saved settings are valid#113
Bazooper-blip wants to merge 1 commit into
integrated-application-development:masterfrom
Bazooper-blip:setup-form-close-prompt

Conversation

@Bazooper-blip

Copy link
Copy Markdown

Fixes #5.

TLintSetupForm.FormCloseQuery only checked whether the form had just been saved, so closing the External Resources Setup window with the X button always showed the "DelphiLint will not be usable" warning — even when everything was already configured correctly.

The close handler now also consults the existing IsSetupValid class function, which validates the saved settings (the same check used to decide whether the setup window needs to be shown at all). The warning still appears when the saved configuration is genuinely invalid, i.e. when closing the window really would leave DelphiLint unusable.

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.

Closing the external resources setup window prompts "DelphiLint will not be usable" even if all settings are correct

1 participant