mirror of
https://github.com/maxgoedjen/secretive.git
synced 2025-09-20 03:10:57 +00:00
Cleanup
This commit is contained in:
parent
10f279675a
commit
c22e7d9ed8
@ -2,13 +2,13 @@ import Foundation
|
||||
import Combine
|
||||
import AppKit
|
||||
|
||||
protocol JustUpdatedCheckerProtocol: ObservableObject {
|
||||
protocol JustUpdatedCheckerProtocol: Observable {
|
||||
var justUpdated: Bool { get }
|
||||
}
|
||||
|
||||
class JustUpdatedChecker: ObservableObject, JustUpdatedCheckerProtocol {
|
||||
@Observable class JustUpdatedChecker: JustUpdatedCheckerProtocol {
|
||||
|
||||
@Published var justUpdated: Bool = false
|
||||
var justUpdated: Bool = false
|
||||
|
||||
init() {
|
||||
check()
|
||||
|
@ -20,7 +20,7 @@ extension Preview {
|
||||
|
||||
extension Preview {
|
||||
|
||||
final class Store: SecretStore, ObservableObject {
|
||||
@Observable final class Store: SecretStore {
|
||||
|
||||
let isAvailable = true
|
||||
let id = UUID()
|
||||
|
@ -112,10 +112,10 @@ extension ThumbnailPickerView {
|
||||
|
||||
}
|
||||
|
||||
@MainActor class SystemBackground: ObservableObject {
|
||||
@MainActor @Observable class SystemBackground {
|
||||
|
||||
static let shared = SystemBackground()
|
||||
@Published var image: NSImage?
|
||||
var image: NSImage?
|
||||
|
||||
private init() {
|
||||
if let mainScreen = NSScreen.main, let imageURL = NSWorkspace.shared.desktopImageURL(for: mainScreen) {
|
||||
|
Loading…
Reference in New Issue
Block a user