Skip to content

Commit

Permalink
Fix selection of 10 minutes refresh rate
Browse files Browse the repository at this point in the history
  • Loading branch information
azarakovskiy committed Feb 5, 2020
1 parent 1b62870 commit 9b87b7e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions DevExcuses/Sources/Config/ConfigSheetController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ final class ConfigSheetController: NSWindowController {
duration.selectItem(at: 3)
} else if self.configs.duration == 300 {
duration.selectItem(at: 4)
} else if self.configs.duration == 600 {
duration.selectItem(at: 5)
} else {
duration.selectItem(at: 0)
}
Expand Down Expand Up @@ -157,6 +159,8 @@ final class ConfigSheetController: NSWindowController {
self.configs.duration = 120
} else if duration.indexOfSelectedItem == 4 {
self.configs.duration = 300
} else if duration.indexOfSelectedItem == 5 {
self.configs.duration = 600
}
}

Expand Down

0 comments on commit 9b87b7e

Please sign in to comment.