Skip to content

Commit

Permalink
Merge branch 'hotfix/null-error'
Browse files Browse the repository at this point in the history
  • Loading branch information
gee1k committed Jun 30, 2019
2 parents 93a58be + 8f15a85 commit 32cc4a2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion uPic/PreferencesWindow/HostPreferencesViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,9 @@ class HostPreferencesViewController: PreferencesViewController {
@IBAction func saveButtonClicked(_ sender: Any?) {

// 取消一下节流函数的定时器,确保不会在点击保存按钮后,再重新计划安装状态
self.hostConfigChangedDebouncedFunc(true)
if self.hostConfigChangedDebouncedFunc != nil {
self.hostConfigChangedDebouncedFunc(true)
}

// 先让当前正在编辑的输入框触发一下 editEnd 事件,来 trim 一下本身
self.blurEditingTextField()
Expand Down

0 comments on commit 32cc4a2

Please sign in to comment.