Doing a bit of gutting.

This commit is contained in:
Max Goedjen
2020-07-18 19:25:03 -07:00
parent a4d674bd2b
commit 28dbacd850
4 changed files with 125 additions and 74 deletions

View File

@@ -15,12 +15,12 @@ struct ContentView<UpdaterType: UpdaterProtocol, AgentStatusCheckerType: AgentSt
var body: some View {
VStack {
if updater.update != nil {
updateNotice()
}
if !agentStatusChecker.running {
agentNotice()
}
// if updater.update != nil {
// updateNotice()
// }
// if !agentStatusChecker.running {
// agentNotice()
// }
if storeList.anyAvailable {
NavigationView {
List(selection: $active) {
@@ -73,7 +73,21 @@ struct ContentView<UpdaterType: UpdaterProtocol, AgentStatusCheckerType: AgentSt
} else {
NoStoresView()
}
}.frame(minWidth: 640, minHeight: 320)
}
.frame(minWidth: 640, minHeight: 320)
.toolbar {
self.toolbar
}
}
var toolbar: ToolbarItem<Void, Button<Image>> {
ToolbarItem {
Button(action: {
print("OK")
}, label: {
Image(systemName: "plus")
})
}
}
func updateNotice() -> some View {