mirror of
https://github.com/maxgoedjen/secretive.git
synced 2025-09-15 08:50:57 +00:00
Add app folder notice. (#704)
This commit is contained in:
parent
f76766a9d5
commit
5d5ae5bab4
@ -3139,6 +3139,17 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"app_not_in_applications_notice_cancel_button" : {
|
||||||
|
"extractionState" : "manual",
|
||||||
|
"localizations" : {
|
||||||
|
"en" : {
|
||||||
|
"stringUnit" : {
|
||||||
|
"state" : "translated",
|
||||||
|
"value" : "Cancel"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"app_not_in_applications_notice_detail_description" : {
|
"app_not_in_applications_notice_detail_description" : {
|
||||||
"extractionState" : "manual",
|
"extractionState" : "manual",
|
||||||
"localizations" : {
|
"localizations" : {
|
||||||
@ -3324,6 +3335,17 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"app_not_in_applications_notice_quit_button" : {
|
||||||
|
"extractionState" : "manual",
|
||||||
|
"localizations" : {
|
||||||
|
"en" : {
|
||||||
|
"stringUnit" : {
|
||||||
|
"state" : "translated",
|
||||||
|
"value" : "Quit"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"app_not_in_applications_notice_title" : {
|
"app_not_in_applications_notice_title" : {
|
||||||
"extractionState" : "manual",
|
"extractionState" : "manual",
|
||||||
"localizations" : {
|
"localizations" : {
|
||||||
|
@ -167,17 +167,17 @@ extension ContentView {
|
|||||||
.foregroundColor(.white)
|
.foregroundColor(.white)
|
||||||
})
|
})
|
||||||
.buttonStyle(ToolbarStatusButtonStyle(color: .orange))
|
.buttonStyle(ToolbarStatusButtonStyle(color: .orange))
|
||||||
.popover(isPresented: $showingAppPathNotice, attachmentAnchor: attachmentAnchor, arrowEdge: .bottom) {
|
.confirmationDialog(.appNotInApplicationsNoticeTitle, isPresented: $showingAppPathNotice) {
|
||||||
VStack {
|
Button(.appNotInApplicationsNoticeCancelButton, role: .cancel) {
|
||||||
Image(systemName: "exclamationmark.triangle")
|
}
|
||||||
.resizable()
|
Button(.appNotInApplicationsNoticeQuitButton) {
|
||||||
.aspectRatio(contentMode: .fit)
|
NSWorkspace.shared.selectFile(Bundle.main.bundlePath, inFileViewerRootedAtPath: Bundle.main.bundlePath)
|
||||||
.frame(width: 64)
|
NSApplication.shared.terminate(nil)
|
||||||
|
}
|
||||||
|
} message: {
|
||||||
Text(.appNotInApplicationsNoticeDetailDescription)
|
Text(.appNotInApplicationsNoticeDetailDescription)
|
||||||
.frame(maxWidth: 300)
|
|
||||||
}
|
|
||||||
.padding()
|
|
||||||
}
|
}
|
||||||
|
.dialogIcon(Image(systemName: "folder.fill.badge.questionmark"))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user