Fix warnings

This commit is contained in:
Max Goedjen 2021-12-14 21:01:08 -08:00
parent 77e90044aa
commit 8e569864c1
No known key found for this signature in database
GPG Key ID: E58C21DD77B9B8E8
4 changed files with 4 additions and 4 deletions

View File

@ -12,7 +12,7 @@ struct CreateSecretView<StoreType: SecretStoreModifiable>: View {
var body: some View {
VStack {
HStack {
Image(nsImage: NSApp.applicationIconImage)
Image(nsImage: NSApplication.shared.applicationIconImage)
.resizable()
.frame(width: 64, height: 64)
.padding()

View File

@ -12,7 +12,7 @@ struct DeleteSecretView<StoreType: SecretStoreModifiable>: View {
var body: some View {
VStack {
HStack {
Image(nsImage: NSApp.applicationIconImage)
Image(nsImage: NSApplication.shared.applicationIconImage)
.resizable()
.frame(width: 64, height: 64)
.padding()

View File

@ -12,7 +12,7 @@ struct RenameSecretView<StoreType: SecretStoreModifiable>: View {
var body: some View {
VStack {
HStack {
Image(nsImage: NSApp.applicationIconImage)
Image(nsImage: NSApplication.shared.applicationIconImage)
.resizable()
.frame(width: 64, height: 64)
.padding()

View File

@ -146,7 +146,7 @@ struct SecretAgentSetupView: View {
var body: some View {
SetupStepView(title: "Setup Secret Agent",
image: Image(nsImage: NSApp.applicationIconImage),
image: Image(nsImage: NSApplication.shared.applicationIconImage),
bodyText: "Secretive needs to set up a helper app to work properly. It will sign requests from SSH clients in the background, so you don't need to keep the main Secretive app open.",
buttonTitle: "Install",
buttonAction: install) {