Modify

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)

Preferences__save_on_put_in_specialized_methods.patch (6.4 KB ) - added by hiddewie 6 years ago.

Download all attachments as: .zip

Change History (3)

comment:2 by simon04, 5 years ago

Resolution: wontfix
Status: newclosed

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.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.