Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,14 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Compile the macOS panel window bridge
shell: bash
run: |
for arch in arm64 x86_64; do
xcrun --sdk macosx clang++ -arch "$arch" -std=c++17 -fobjc-arc -fsyntax-only \
-Isrc/apps -Isrc/base src/apps/desktop/panel_window_mac.mm
done

- name: Test native installer and both UI architectures
run: bash tests/scripts/macos_installer_test.sh

Expand Down
5 changes: 3 additions & 2 deletions src/apps/desktop/panel_window_mac.mm
Original file line number Diff line number Diff line change
Expand Up @@ -352,14 +352,15 @@ - (void)closeNow {
- (void)handleCommand:(acecode::desktop::PanelWindowCommand)command
fromOrigin:(const std::string&)origin {
if (_tornDown || origin != _origin) return;
__weak ACECodePanelWindowController* weakSelf = self;
switch (command) {
case PanelWindowCommand::Close:
case PanelWindowCommand::Close: {
// 不在脚本消息回调里拆网页视图,推迟到回调返回之后。
__weak ACECodePanelWindowController* weakSelf = self;
dispatch_async(dispatch_get_main_queue(), ^{
[weakSelf closeNow];
});
break;
}
case PanelWindowCommand::Focus:
[self showInFront];
break;
Expand Down
Loading