Skip to content

Commit

Permalink
updated based on Pasin feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
biozal committed Oct 16, 2024
1 parent 9c8dec1 commit 0acd16a
Show file tree
Hide file tree
Showing 14 changed files with 191 additions and 167 deletions.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,6 @@
type = "1"
version = "2.0">
<Breakpoints>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
uuid = "5E6B1D52-09DE-41D8-9FEE-F650BE0271B2"
shouldBeEnabled = "No"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "App/Views/Components/ItemDetail.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "30"
endingLineNumber = "30"
landmarkName = "body"
landmarkType = "24">
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
Expand Down
20 changes: 19 additions & 1 deletion App/Data/CBLApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,25 @@ class CBLApp: ObservableObject {
@Published var databaseState: DatabaseState = .notInitialized

init(configuration: AppConfig){
self.appConfig = configuration
appConfig = configuration
}

func setCurrentUser(_ user: User?){
DispatchQueue.main.sync {
self.currentUser = user
}
}

func setError(_ error: Error?){
DispatchQueue.main.sync {
self.error = error
}
}

func setDatabaseState(_ state: DatabaseState){
DispatchQueue.main.sync {
self.databaseState = state
}
}
}

Expand Down
Loading

0 comments on commit 0acd16a

Please sign in to comment.