Skip to content

Commit

Permalink
Reset the status of addButton when switched to a new preset
Browse files Browse the repository at this point in the history
  • Loading branch information
lhc70000 committed Mar 30, 2019
1 parent 9e5f9cb commit dffd4a6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions iina/FilterWindowController.swift
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -329,6 +329,8 @@ class NewFilterSheetViewController: NSViewController, NSTableViewDelegate, NSTab
currentPreset = preset currentPreset = preset
currentBindings.removeAll() currentBindings.removeAll()
scrollContentView.subviews.forEach { $0.removeFromSuperview() } scrollContentView.subviews.forEach { $0.removeFromSuperview() }
addButton.isEnabled = true

var maxY: CGFloat = 0 var maxY: CGFloat = 0
let generateInputs: (String, FilterParameter) -> Void = { (name, param) in let generateInputs: (String, FilterParameter) -> Void = { (name, param) in
self.scrollContentView.addSubview(self.quickLabel(yPos: maxY, title: preset.localizedParamName(name))) self.scrollContentView.addSubview(self.quickLabel(yPos: maxY, title: preset.localizedParamName(name)))
Expand Down

0 comments on commit dffd4a6

Please sign in to comment.