Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
alienator88 committed Oct 18, 2024
1 parent 4c8f39e commit 95d3326
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"location" : "https://github.com/alienator88/AlinFoundation",
"state" : {
"branch" : "main",
"revision" : "9e22796895c78f8ecce0b4d8c58917ec36f7c1b0"
"revision" : "a4df813f0186209491a2568d03aab8da8eab7ae0"
}
},
{
Expand Down
3 changes: 3 additions & 0 deletions Pearcleaner/Resources/Localizable.xcstrings
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,9 @@
},
"Pearcleaner Uninstall" : {
"comment" : "Right click context menu item when using the Finder extension to uninstall using Pearcleaner"
},
"Permissions" : {

},
"Pin popover window on top" : {

Expand Down
21 changes: 19 additions & 2 deletions Pearcleaner/Settings/SettingsWindow.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ struct SettingsView: View {
@AppStorage("settings.general.glass") private var glass: Bool = false
@AppStorage("settings.general.selectedTab") private var selectedTab: CurrentTabView = .general
@State private var isResetting = false
@State private var showPerms = false

var body: some View {

Expand Down Expand Up @@ -65,8 +66,24 @@ struct SettingsView: View {

Spacer()

Text("v\(Bundle.main.version)").foregroundStyle(.secondary)
.padding(.bottom, 4)
HStack {
Text(verbatim: "v\(Bundle.main.version)").font(.footnote).foregroundStyle(.secondary)
Text(verbatim: "|").font(.footnote).foregroundStyle(.secondary)

Button() {
showPerms.toggle()
} label: {
Text(String(localized: "Permissions").uppercased())
.font(.footnote)
.foregroundStyle(.secondary)
}
.buttonStyle(.plain)
.sheet(isPresented: $showPerms, content: {
PermissionsListView()
})
}
.padding(.bottom, 4)


Button {
resetUserDefaults()
Expand Down

0 comments on commit 95d3326

Please sign in to comment.