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 Combine
|
||||||
import AppKit
|
import AppKit
|
||||||
|
|
||||||
protocol JustUpdatedCheckerProtocol: ObservableObject {
|
protocol JustUpdatedCheckerProtocol: Observable {
|
||||||
var justUpdated: Bool { get }
|
var justUpdated: Bool { get }
|
||||||
}
|
}
|
||||||
|
|
||||||
class JustUpdatedChecker: ObservableObject, JustUpdatedCheckerProtocol {
|
@Observable class JustUpdatedChecker: JustUpdatedCheckerProtocol {
|
||||||
|
|
||||||
@Published var justUpdated: Bool = false
|
var justUpdated: Bool = false
|
||||||
|
|
||||||
init() {
|
init() {
|
||||||
check()
|
check()
|
||||||
|
@ -20,7 +20,7 @@ extension Preview {
|
|||||||
|
|
||||||
extension Preview {
|
extension Preview {
|
||||||
|
|
||||||
final class Store: SecretStore, ObservableObject {
|
@Observable final class Store: SecretStore {
|
||||||
|
|
||||||
let isAvailable = true
|
let isAvailable = true
|
||||||
let id = UUID()
|
let id = UUID()
|
||||||
|
@ -112,10 +112,10 @@ extension ThumbnailPickerView {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@MainActor class SystemBackground: ObservableObject {
|
@MainActor @Observable class SystemBackground {
|
||||||
|
|
||||||
static let shared = SystemBackground()
|
static let shared = SystemBackground()
|
||||||
@Published var image: NSImage?
|
var image: NSImage?
|
||||||
|
|
||||||
private init() {
|
private init() {
|
||||||
if let mainScreen = NSScreen.main, let imageURL = NSWorkspace.shared.desktopImageURL(for: mainScreen) {
|
if let mainScreen = NSScreen.main, let imageURL = NSWorkspace.shared.desktopImageURL(for: mainScreen) {
|
||||||
|
Loading…
Reference in New Issue
Block a user