Skip to content

Commit fe6c98c

Browse files
devsemihclaude
andcommitted
Add Quit button to OnboardingView
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent a50c2e2 commit fe6c98c

1 file changed

Lines changed: 16 additions & 8 deletions

File tree

appjail/Views/OnboardingView.swift

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,22 @@ struct OnboardingView: View {
3535

3636
Spacer()
3737

38-
if permissionsManager.allPermissionsGranted {
39-
Text("All set!")
40-
.font(.caption)
41-
.foregroundStyle(.green)
42-
} else {
43-
Text("Permissions are checked automatically.")
44-
.font(.caption)
45-
.foregroundStyle(.secondary)
38+
HStack {
39+
if permissionsManager.allPermissionsGranted {
40+
Text("All set!")
41+
.font(.caption)
42+
.foregroundStyle(.green)
43+
} else {
44+
Text("Permissions are checked automatically.")
45+
.font(.caption)
46+
.foregroundStyle(.secondary)
47+
}
48+
Spacer()
49+
Button("Quit") {
50+
NSApplication.shared.terminate(nil)
51+
}
52+
.buttonStyle(.plain)
53+
.foregroundStyle(.red)
4654
}
4755
}
4856
.padding()

0 commit comments

Comments
 (0)