Skip to content
Permalink
Browse files

Reset the status of addButton when switched to a new preset

  • Loading branch information...
lhc70000 committed Mar 30, 2019
1 parent 9e5f9cb commit dffd4a6647e2313ce31ec71d0c06cbc6a0fcdd4a
Showing with 2 additions and 0 deletions.
  1. +2 −0 iina/FilterWindowController.swift
@@ -329,6 +329,8 @@ class NewFilterSheetViewController: NSViewController, NSTableViewDelegate, NSTab
currentPreset = preset
currentBindings.removeAll()
scrollContentView.subviews.forEach { $0.removeFromSuperview() }
addButton.isEnabled = true

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

0 comments on commit dffd4a6

Please sign in to comment.
You can’t perform that action at this time.