mirror of
https://github.com/FBukovina/Atoll.git
synced 2026-10-28 15:44:32 +00:00
BugFix: MouseOver and Add Feature: Clipboard settings
This commit is contained in:
parent
bb0b66a50e
commit
7137fcd255
7 changed files with 76 additions and 4 deletions
|
|
@ -10,6 +10,7 @@ import SwiftUI
|
|||
import Combine
|
||||
import Foundation
|
||||
import UniformTypeIdentifiers
|
||||
import Defaults
|
||||
|
||||
// Clipboard item data structure
|
||||
struct ClipboardItem: Identifiable, Codable {
|
||||
|
|
@ -152,7 +153,11 @@ class ClipboardManager: ObservableObject {
|
|||
|
||||
private var timer: Timer?
|
||||
private var lastChangeCount: Int = 0
|
||||
private let maxHistoryItems = 3
|
||||
|
||||
// Use configurable history size from settings
|
||||
private var maxHistoryItems: Int {
|
||||
return Defaults[.clipboardHistorySize]
|
||||
}
|
||||
|
||||
// Directory for storing clipboard data files
|
||||
static let clipboardDataDirectory: URL = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue