Skip to content

Commit

Permalink
Disable to resize preference window
Browse files Browse the repository at this point in the history
  • Loading branch information
sue71 committed Mar 27, 2018
1 parent f00d207 commit b2ae56d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion WebPonize/controller/PreferenceViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class PreferenceViewController: NSViewController {

override func viewDidLoad() {
super.viewDidLoad()

quality.intValue = Int32(AppDelegate.appConfig.quality)
speed.intValue = Int32(AppDelegate.appConfig.speed)
lossless.intValue = Int32(AppDelegate.appConfig.lossless)
Expand All @@ -30,6 +30,11 @@ class PreferenceViewController: NSViewController {
alphaFiltering.intValue = Int32(AppDelegate.appConfig.alphaFiltering)
alphaCompression.intValue = Int32(AppDelegate.appConfig.alphaCompression)
}

override func viewDidAppear() {
super.viewDidAppear()
self.view.window?.styleMask.remove(.resizable)
}

@IBAction func onQualityChanged(_ sender: NSSlider) {
AppDelegate.appConfig.quality = Float(sender.intValue)
Expand Down

0 comments on commit b2ae56d

Please sign in to comment.