yattee/macOS/Updates/CheckForUpdatesView.swift
2021-12-08 00:27:38 +01:00

11 lines
266 B
Swift

import SwiftUI
struct CheckForUpdatesView: View {
@EnvironmentObject<UpdaterModel> private var updater
var body: some View {
Button("Check For Updates…", action: updater.checkForUpdates)
.disabled(!updater.canCheckForUpdates)
}
}