Skip to content

Refactor and clean up codebase#18

Merged
oniemiddle merged 8 commits intomainfrom
dev
Nov 14, 2025
Merged

Refactor and clean up codebase#18
oniemiddle merged 8 commits intomainfrom
dev

Conversation

@oniemiddle
Copy link
Owner

  • Remove sealed modifier from various classes and services
  • Remove unused NavMenuItemTemplate and update visibility of Root property in NavMenuItemViewModel
  • Remove unnecessary data structures and extension classes, change UI to use tree menu instead of separators
  • Integrate MainView and MainViewModel functionalities into MainWindow and MainWindowViewModel, respectively
  • Refactor HotKeyService

…ng and event processing

- Adjust `ComboTimeout` in `HotKeyService` to 400ms
- Remove unnecessary comments and streamline event handling logic
- Update `ObserveHotKeySequence` to use `ResultType` and improve logging
- Add remarks to `IKeyboardService` for `KeyTyped` event
- Remove commented-out code in `ExHotKeyPlugin`
…w` and `MainViewModel` functionalities

- Move `MainView` XAML and code-behind logic into `MainWindow`
- Update `MainWindowViewModel` to inherit from `NavMenuViewModel` and include `MainViewModel` logic
- Remove `MainView` and `MainViewModel` files
- 去掉了一些不必要的数据结构和扩展类
- 使用树菜单而不是分割线
…roperty in `NavMenuItemViewModel`

- Remove commented-out `NavMenuItemTemplate` in `MainWindow.axaml`
- Change `Root` property to private in `NavMenuItemViewModel`
- Add line breaks for better readability in `MainWindowViewModel`
@oniemiddle oniemiddle self-assigned this Nov 14, 2025
@oniemiddle oniemiddle merged commit e94912e into main Nov 14, 2025
1 check failed
oniemiddle added a commit that referenced this pull request Jan 10, 2026
Refactor and clean up codebase
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant