Add Refresh button for macOS

This commit is contained in:
Kenta Kubo 2021-02-13 11:56:10 +09:00
parent 4cfb651de1
commit 7297768e9e

View file

@ -194,6 +194,10 @@ extension ContentView: View {
.frame(width: 10, height: 10)
.foregroundColor(self.isEnabled ? .green : .secondary)
Text(self.isEnabled ? "Active" : "Inactive")
#if targetEnvironment(macCatalyst)
Text("-")
Button("Refresh", action: self.updateStatus)
#endif
}
if !self.isEnabled {
Button("How to Activate") {