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
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Fixed

- Inspector separator no longer bleeds into toolbar area with default connection color (#228)
- Inspector toggle no longer lags due to synchronous UserDefaults writes during animation (#229)

### Added

- Direct `.tableplugin` bundle installation via file picker, Finder double-click, and drag-and-drop
Expand Down
7 changes: 4 additions & 3 deletions TablePro/Models/UI/RightPanelState.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,16 @@ import os
@MainActor @Observable final class RightPanelState {
private static let isPresentedKey = "com.TablePro.rightPanel.isPresented"
private static let isPresentedChangedNotification = Notification.Name("com.TablePro.rightPanel.isPresentedChanged")

private var isSyncing = false
@ObservationIgnored private let _didTeardown = OSAllocatedUnfairLock(initialState: false)

var isPresented: Bool {
didSet {
guard !isSyncing else { return }
UserDefaults.standard.set(isPresented, forKey: Self.isPresentedKey)
NotificationCenter.default.post(name: Self.isPresentedChangedNotification, object: self)
DispatchQueue.main.async { [self] in
UserDefaults.standard.set(self.isPresented, forKey: Self.isPresentedKey)
NotificationCenter.default.post(name: Self.isPresentedChangedNotification, object: self)
}
}
}

Expand Down
1 change: 0 additions & 1 deletion TablePro/Views/Main/MainContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -861,7 +861,6 @@ private struct ToolbarTintModifier: ViewModifier {
func body(content: Content) -> some View {
if connectionColor.isDefault {
content
.toolbarBackground(.hidden, for: .windowToolbar)
} else {
content
.toolbarBackground(connectionColor.color.opacity(0.12), for: .windowToolbar)
Expand Down