Opened 6 years ago
Closed 5 years ago
#19448 closed enhancement (wontfix)
[PATCH] Preferences enableSaveOnPut/disableSaveOnPut
| Reported by: | hiddewie | Owned by: | team |
|---|---|---|---|
| Priority: | trivial | Milestone: | |
| Component: | Core | Version: | |
| Keywords: | refactoring | Cc: |
Description
In the Preferences class there is a method enableSaveOnPut that enables or disables save on put operations.
However, all method calls have the argument false. Furthermore, having a single boolean argument to enable/disable something is a code smell.
The patch creates two specialized methods and deprecates the old method.
Attachments (1)
Change History (3)
by , 6 years ago
| Attachment: | Preferences__save_on_put_in_specialized_methods.patch added |
|---|
comment:1 by , 5 years ago
| Keywords: | refactoring added |
|---|
comment:2 by , 5 years ago
| Resolution: | → wontfix |
|---|---|
| Status: | new → closed |
Thanks for the patch. I agree that the code gets clearer. However, for me, the effort for taking care of the deprecation and updating the plugins does not justify the change.



This affects the following plugins: