Skip to content

Commit

Permalink
Merge branch 'dev' into fix-sparkle-alert
Browse files Browse the repository at this point in the history
  • Loading branch information
tisfeng authored Feb 5, 2025
2 parents 81e7503 + fc3fdd6 commit 900a1d5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Easydict/Swift/Feature/Configuration/Configuration.swift
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ class Configuration: NSObject {
}
.store(in: &cancellables)

Defaults.publisher(.allowCrashLog, options: [])
Defaults.publisher(.allowCrashLog, options: [.initial])
.removeDuplicates()
.sink { [weak self] _ in
self?.didSetAllowCrashLog()
Expand Down
4 changes: 4 additions & 0 deletions Easydict/objc/Utility/EZLog/EZLog.m
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,13 @@ + (void)setupSentry {

+ (void)setCrashEnabled:(BOOL)enabled {
BOOL isEnabled = enabled;

#if DEBUG
isEnabled = NO;
#endif

// TODO: Later, remove App Center SDK if Sentry is stable.

// This method can only take effect after the service is started.
[MSACCrashes setEnabled:isEnabled];

Expand Down

0 comments on commit 900a1d5

Please sign in to comment.