0x7c13 / Notepads

A modern, lightweight text editor with a minimalist design.
https://www.NotepadsApp.com
MIT License
8.65k stars 474 forks source link

other: Code refactoring #1223

Closed aayushpandya closed 10 months ago

aayushpandya commented 1 year ago

other: Code refactoring

PR Type

What kind of change does this PR introduce?

I've refactored the code to make it more readable, maintainable. Changes: The SessionUtility class has multiple responsibilities, violating the single responsibility principle. To improve this, splitting the class into two - SessionUtility and BackupSessionUtility - would clarify each class's responsibilities and make the code more maintainable and extensible. The public ClearAll has been moved from MRUService class to NotepadsMainPage class, also, it’s access modifier has been changed from public to private as it is being used only in that class. This change has been made to better organize the code and make it easier to understand and maintain.

Other information