Commit graph

7 commits

Author SHA1 Message Date
leo
f6eb1281b5 enhance: force using StringComparison.Ordinal 2024-03-14 11:09:05 +08:00
leo
307e5a5ef0 fix<Repository, History>: wrong context menu IsEnabled state.
* 'Pull' should always enabled for local branch with remote upstream
* 'Discard All Changes' for current branch should only be enabled when there's at least one changes
* 'Fast Forward' should check if target local branch has any commit ahead of it's upstream
2024-03-01 19:12:22 +08:00
leo
1149c768d3 refactor<NameHighlightedTextBlock>: use NameHighlightedTextBlock's constructor instead of functions in each caller 2024-02-28 18:55:23 +08:00
leo
2aacec75b4 optimize<*>: add a static method CreateMenuIcon to App. Restore working copy changes' selection state after refreshed 2024-02-27 18:26:05 +08:00
leo
57c4a8394c optimize<*>: reduce memory usage 2024-02-20 18:27:59 +08:00
leo
e310cfd84f feature<ContextMenu>: highlight branch/commit/tag name in ContextMenuItem 2024-02-06 19:07:17 +08:00
leo
2a62596999 refactor<*>: rewrite all with AvaloniaUI 2024-02-06 15:08:37 +08:00