Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add folder icon and directory selection feature Introduced a folder icon for the installation directory setting UI and implemented functionality to change the installation directory. Updated resource files to include new string entries for "InstallationDirectory" and "Edit" in multiple languages. * Add Click event to GmlButton component Implemented a new Click event for the GmlButton component, enhancing its functionality. Updated the axaml template to bind the button's click action and ensured command execution on click events. Also added handler in SettingsPageView to utilize the new Click event. * Remove OnPointerReleased override from GmlButton The OnPointerReleased method was overriding base functionality, which is now removed to restore default behavior. This change ensures that the button handles pointer events as per the standard implementation, preventing unexpected behavior. * Refactor settings initialization and folder change logic Separated responsibilities for initialization steps into distinct methods in `ServiceLocator`. Enhanced `SettingsPageViewModel` to save the installation directory upon changes. Modified `OpenFileDialog` to use new folder picker API and propagate the folder change correctly. * Add "Files" localization and update description format Added a new "Files" string to the resource files for localization support. Updated the OverviewPageViewModel to include the "Files" string in its description format, enhancing clarity for file-related messages. * Refactor (#40) * Refactor converters and optimize ProfileChanges handling Updated converters to ensure return values are non-nullable and handle exceptions gracefully. Optimized `ProfileChanges` handling by using a dedicated async method and made various minor improvements such as marking properties as private. * Refactor ServiceNotFoundException constructor. Simplify initialization of NotFoundedService property directly in the constructor. This reduces the code complexity and enhances readability. * Refactor `ServiceLocator` for readability and simplicity Simplified handler attachment with discards, removed redundant braces, and eliminated unnecessary return statement in `RegisterLocalizationService`. These changes improve code readability and maintainability without altering functionality. * Add detailed documentation comments and code refinements Enhance interface and class method documentation with detailed descriptions, parameters, and return type annotations. Refactor dependency initialization in LocalStorageService, improve encapsulation with "init" properties for immutable fields, and remove redundant constructor in SystemService. * Refactor ViewModels and streamline code Simplified several ViewModel, Model, and View implementations for better readability and maintainability. Removed unnecessary dependencies and streamlined property initializations. Also added event handling for window close functionality. * Refactor and clean up multiple classes for better readability Refactored various classes to improve code readability and maintainability. Changes include removing unnecessary usings, adjusting method placements, and cleaning up formatting inconsistencies. This enhances the overall structure and readability without altering core functionality.
- Loading branch information