Skip to content

Commit

Permalink
control sidebar open/close in prefs instead of memory
Browse files Browse the repository at this point in the history
  • Loading branch information
aapis committed Feb 3, 2023
1 parent 422e194 commit d14a2ee
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions DLPrototype.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -905,7 +905,7 @@
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 70;
CURRENT_PROJECT_VERSION = 71;
DEAD_CODE_STRIPPING = YES;
DEVELOPMENT_ASSET_PATHS = "\"DLPrototype/Preview Content\"";
DEVELOPMENT_TEAM = 6DT7L2N5X6;
Expand Down Expand Up @@ -936,7 +936,7 @@
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 70;
CURRENT_PROJECT_VERSION = 71;
DEAD_CODE_STRIPPING = YES;
DEVELOPMENT_ASSET_PATHS = "\"DLPrototype/Preview Content\"";
DEVELOPMENT_TEAM = 6DT7L2N5X6;
Expand Down
3 changes: 2 additions & 1 deletion DLPrototype/Views/Settings/GeneralSettings.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,13 @@ struct GeneralSettings: View {
@AppStorage("showExperiment.actions") private var showExperimentActions: Bool = false
@AppStorage("enableAutoCorrection") public var enableAutoCorrection: Bool = false
@AppStorage("autoFixJobs") public var autoFixJobs: Bool = false
@AppStorage("showSidebar") public var showSidebar: Bool = true

var body: some View {
Form {
Toggle("Tiger stripe table rows", isOn: $tigerStriped)
Toggle("Auto-correct text in text boxes", isOn: $enableAutoCorrection)
Toggle("Show sidebar", isOn: $showSidebar)

Group {
Toggle("Experimental features (may tank performance)", isOn: $showExperimentalFeatures)
Expand All @@ -37,7 +39,6 @@ struct GeneralSettings: View {
}
}
.padding(20)
.frame(width: 350, height: 100)
}
}

Expand Down
2 changes: 1 addition & 1 deletion DLPrototype/Views/Today/LogTable/LogTable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ struct LogTable: View, Identifiable {

@State private var records: [LogRecord] = []
@State private var wordCount: Int = 0
@State private var showSidebar: Bool = true
@State private var isReversed: Bool = false
@State private var isShowingAlert: Bool = false
@State private var selectedTab: Int = 0
Expand All @@ -25,6 +24,7 @@ struct LogTable: View, Identifiable {

@AppStorage("showExperimentalFeatures") private var showExperimentalFeatures = false
@AppStorage("showExperiment.actions") private var showExperimentActions = false
@AppStorage("showSidebar") public var showSidebar: Bool = true

@Environment(\.managedObjectContext) var moc
@EnvironmentObject public var updater: ViewUpdater
Expand Down

0 comments on commit d14a2ee

Please sign in to comment.