Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Mortennn committed Apr 6, 2020
1 parent 79d764e commit 8bb7d67
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions Dozer/DozerIcons.swift
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public final class DozerIcons {
showAll()
}
}

public var iconFontSize: Int = Defaults[.iconSize] {
didSet {
Defaults[.iconSize] = self.iconFontSize
Expand All @@ -94,7 +94,7 @@ public final class DozerIcons {
}
}
}

public var buttonPadding: CGFloat = Defaults[.buttonPadding] {
didSet {
Defaults[.buttonPadding] = self.buttonPadding
Expand Down
4 changes: 2 additions & 2 deletions Dozer/StatusIconClasses/HelperStatusIcon.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import Defaults

private struct StatusIconLength {
static var show: CGFloat {
return Defaults[.buttonPadding]
Defaults[.buttonPadding]
}
static let hide: CGFloat = 10_000
}
Expand Down Expand Up @@ -59,7 +59,7 @@ class HelperstatusIcon {
statusIconButton.image = Icons().helperstatusIcon
statusIconButton.image!.isTemplate = true
}

func setSize() {
if statusIcon.length != StatusIconLength.hide {
statusIcon.length = StatusIconLength.show
Expand Down
14 changes: 7 additions & 7 deletions Dozer/ViewControllers/GeneralVC.swift
Original file line number Diff line number Diff line change
Expand Up @@ -73,24 +73,24 @@ final class General: NSViewController, PreferencePane {
@IBAction private func hideStatusBarIconsAfterDelayClicked(_ sender: NSButton) {
DozerIcons.shared.hideStatusBarIconsAfterDelay = HideStatusBarIconsAfterDelayCheckbox.isChecked
}
@IBAction func hideStatusBarIconsSecondsUpdated(_ sender: NSPopUpButton) {

@IBAction private func hideStatusBarIconsSecondsUpdated(_ sender: NSPopUpButton) {
Defaults[.hideAfterDelay] = TimeInterval(HideStatusBarIconsSecondsPopUpButton.selectedTag())
DozerIcons.shared.resetTimer()
}

@IBAction private func hideBothDozerIconsClicked(_ sender: NSButton) {
DozerIcons.shared.hideBothDozerIcons = HideBothDozerIconsCheckbox.isChecked
}

@IBAction func fontSizeChanged(_ sender: NSPopUpButton) {
@IBAction private func fontSizeChanged(_ sender: NSPopUpButton) {
DozerIcons.shared.iconFontSize = FontSizePopUpButton.selectedTag()
}
@IBAction func buttonPaddingChanged(_ sender: NSPopUpButton) {

@IBAction private func buttonPaddingChanged(_ sender: NSPopUpButton) {
DozerIcons.shared.buttonPadding = CGFloat(ButtonPaddingPopUpButton.selectedTag())
}

@IBAction private func enableRemoveDozerIconClicked(_ sender: NSButton) {
DozerIcons.shared.enableRemoveDozerIcon = EnableRemoveDozerIconCheckbox.isChecked
}
Expand Down

0 comments on commit 8bb7d67

Please sign in to comment.