Skip to content

Commit f59100e

Browse files
committed
Update
1 parent 05e2241 commit f59100e

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

Core/Package.swift

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,15 @@ let isProIncluded: Bool = {
3838
return false
3939
}
4040
do {
41-
let content = String(
41+
if let content = String(
4242
data: try Data(contentsOf: confURL),
4343
encoding: .utf8
44-
)
45-
print("")
46-
return content?.hasPrefix("YES") ?? false
44+
) {
45+
if content.hasPrefix("YES") {
46+
return true
47+
}
48+
}
49+
return false
4750
} catch {
4851
return false
4952
}

Core/Sources/Service/GUI/GraphicalUserInterfaceController.swift

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ struct GUI: ReducerProtocol {
6565
}
6666

6767
@Dependency(\.chatTabPool) var chatTabPool: ChatTabPool
68-
68+
6969
public enum Debounce: Hashable {
7070
case updateChatTabOrder
7171
}
@@ -224,11 +224,13 @@ struct GUI: ReducerProtocol {
224224
guard old.map(\.id) != new.map(\.id) else {
225225
return .none
226226
}
227+
#if canImport(ChatTabPersistent)
227228
return .run { send in
228-
#if canImport(ChatTabPersistent)
229229
await send(.persistent(.chatOrderChanged))
230-
#endif
231230
}.debounce(id: Debounce.updateChatTabOrder, for: 1, scheduler: DispatchQueue.main)
231+
#else
232+
return .none
233+
#endif
232234
}
233235
}
234236
}

0 commit comments

Comments
 (0)