Skip to content

Commit 3061fe4

Browse files
Merge pull request #209 from kishikawakatsumi/b
Show file activities only top view
2 parents b92bd39 + 5e9f39a commit 3061fe4

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

Examples/FileBrowser/FileBrowser (macOS)/WindowController.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,11 @@ class WindowController: NSWindowController {
211211

212212
@objc
213213
private func didStartActivities(_ notification: Notification) {
214-
guard let toolbarItems = window?.toolbar?.items else {
214+
guard let window = window, window == window.tabGroup?.selectedWindow else {
215+
return
216+
}
217+
218+
guard let toolbarItems = window.toolbar?.items else {
215219
return
216220
}
217221
guard let toolbarItem = toolbarItems.first(where: { $0.itemIdentifier == .activitiesToolbarItemIdentifier }) else {

Examples/FileBrowser/FileBrowser.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)