Skip to content

Commit

Permalink
Merge pull request #2712 from stps/subtitle-border
Browse files Browse the repository at this point in the history
Fix subtitle border width option in quick settings
  • Loading branch information
saagarjha committed Jan 12, 2020
2 parents b65dff7 + cdc9fb7 commit 9af7362
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions iina/QuickSettingViewController.swift
Expand Up @@ -707,10 +707,8 @@ class QuickSettingViewController: NSViewController, NSTableViewDataSource, NSTab
}

@IBAction func subTextSizeAction(_ sender: AnyObject) {
if let selectedItem = subTextSizePopUp.selectedItem {
if let value = Double(selectedItem.title) {
player.setSubTextSize(value)
}
if let selectedItem = subTextSizePopUp.selectedItem, let value = Double(selectedItem.title) {
player.setSubTextSize(value)
}
}

Expand All @@ -719,7 +717,7 @@ class QuickSettingViewController: NSViewController, NSTableViewDataSource, NSTab
}

@IBAction func subTextBorderWidthAction(_ sender: AnyObject) {
if let value = Double(subTextBorderWidthPopUp.stringValue) {
if let selectedItem = subTextBorderWidthPopUp.selectedItem, let value = Double(selectedItem.title) {
player.setSubTextBorderSize(value)
}
}
Expand Down

0 comments on commit 9af7362

Please sign in to comment.