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" : {
|
||||
"extractionState" : "manual",
|
||||
"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" : {
|
||||
"extractionState" : "manual",
|
||||
"localizations" : {
|
||||
|
@ -167,17 +167,17 @@ extension ContentView {
|
||||
.foregroundColor(.white)
|
||||
})
|
||||
.buttonStyle(ToolbarStatusButtonStyle(color: .orange))
|
||||
.popover(isPresented: $showingAppPathNotice, attachmentAnchor: attachmentAnchor, arrowEdge: .bottom) {
|
||||
VStack {
|
||||
Image(systemName: "exclamationmark.triangle")
|
||||
.resizable()
|
||||
.aspectRatio(contentMode: .fit)
|
||||
.frame(width: 64)
|
||||
.confirmationDialog(.appNotInApplicationsNoticeTitle, isPresented: $showingAppPathNotice) {
|
||||
Button(.appNotInApplicationsNoticeCancelButton, role: .cancel) {
|
||||
}
|
||||
Button(.appNotInApplicationsNoticeQuitButton) {
|
||||
NSWorkspace.shared.selectFile(Bundle.main.bundlePath, inFileViewerRootedAtPath: Bundle.main.bundlePath)
|
||||
NSApplication.shared.terminate(nil)
|
||||
}
|
||||
} message: {
|
||||
Text(.appNotInApplicationsNoticeDetailDescription)
|
||||
.frame(maxWidth: 300)
|
||||
}
|
||||
.padding()
|
||||
}
|
||||
.dialogIcon(Image(systemName: "folder.fill.badge.questionmark"))
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user