Commit c2d339a
committed
refactor: Add secondary window support in Launcher class
- Introduced `IsSecondaryWindow` property and `OnRequestClose` event in the `Launcher` view model.
- Updated the constructor to accept a boolean for secondary window status.
- Modified `Quit` method to handle close requests for secondary windows.
- Refactored `MoveToNewWindow` and `CopyToNewWindow` methods to streamline window creation.
- Added `RegisterOnRequestClose` method in the `Launcher` view to manage close requests.
- Updated `using` directives in `Launcher.axaml.cs` to include `Avalonia.Threading`.1 parent d61246d commit c2d339a
2 files changed
+29
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
54 | 62 | | |
55 | 63 | | |
56 | 64 | | |
| |||
116 | 124 | | |
117 | 125 | | |
118 | 126 | | |
| 127 | + | |
| 128 | + | |
119 | 129 | | |
120 | 130 | | |
121 | 131 | | |
| |||
273 | 283 | | |
274 | 284 | | |
275 | 285 | | |
276 | | - | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
277 | 290 | | |
278 | 291 | | |
279 | 292 | | |
| |||
554 | 567 | | |
555 | 568 | | |
556 | 569 | | |
| 570 | + | |
557 | 571 | | |
558 | | - | |
559 | | - | |
560 | | - | |
561 | 572 | | |
562 | 573 | | |
563 | | - | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
564 | 577 | | |
565 | | - | |
| 578 | + | |
| 579 | + | |
566 | 580 | | |
567 | 581 | | |
568 | 582 | | |
| |||
643 | 657 | | |
644 | 658 | | |
645 | 659 | | |
| 660 | + | |
646 | 661 | | |
647 | 662 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
85 | 86 | | |
86 | 87 | | |
87 | 88 | | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
88 | 95 | | |
89 | 96 | | |
90 | 97 | | |
| |||
0 commit comments