Skip to content

Commit

Permalink
fix Int32 that caused app to crash when opening advanced settings
Browse files Browse the repository at this point in the history
  • Loading branch information
tryhardfifi committed Nov 24, 2021
1 parent 698e628 commit 868c72a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions breathe.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,7 @@
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = dwarf;
ENABLE_HARDENED_RUNTIME = YES;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
GCC_C_LANGUAGE_STANDARD = gnu11;
Expand Down Expand Up @@ -588,6 +589,7 @@
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_HARDENED_RUNTIME = YES;
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_C_LANGUAGE_STANDARD = gnu11;
Expand Down
Binary file not shown.
10 changes: 5 additions & 5 deletions ds/AdvancedController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,14 @@ class AdvancedController: NSViewController {
override func viewDidLoad() {
super.viewDidLoad()
let propertyList = self.readPropertyList()
self.progressionEnabled.intValue = propertyList["progression_enabled"] as! Int32
self.increaseByLabel.intValue = propertyList["progression_increase_by"] as! Int32
self.progressionEnabled.intValue = Int32(propertyList["progression_enabled"] as! Double)
self.increaseByLabel.intValue = Int32(propertyList["progression_increase_by"] as! Double)
self.increaseByLabel.stringValue = String((propertyList["progression_increase_by"] as! Double)*0.1)
self.minutesLabel.intValue = propertyList["progression_minutes"] as! Int32
self.timesLabel.intValue = propertyList["progression_times"] as! Int32
self.increaseByStepper.intValue = propertyList["progression_increase_by"] as! Int32
self.minutesStepper.intValue = propertyList["progression_minutes"] as! Int32
self.timesStepper.intValue = propertyList["progression_times"] as! Int32
self.increaseByStepper.intValue = Int32(propertyList["progression_increase_by"] as! Double)
self.minutesStepper.intValue = Int32(propertyList["progression_minutes"] as! Double)
self.timesStepper.intValue = Int32(propertyList["progression_times"] as! Int32)
if self.progressionEnabled.state.rawValue == 1 {
self.durationLabel.intValue = self.timesLabel.intValue * self.minutesLabel.intValue

Expand Down

0 comments on commit 868c72a

Please sign in to comment.