Skip to content

Commit

Permalink
fix 自定义图床 bug
Browse files Browse the repository at this point in the history
  • Loading branch information
陈徐挺(Jesse) committed Dec 30, 2016
1 parent 3239135 commit 9f88b43
Show file tree
Hide file tree
Showing 16 changed files with 5 additions and 5 deletions.
Binary file modified UPImage/Assets.xcassets/AppIcon.appiconset/Icon_128x128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified UPImage/Assets.xcassets/AppIcon.appiconset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified UPImage/Assets.xcassets/AppIcon.appiconset/Icon_16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified UPImage/Assets.xcassets/AppIcon.appiconset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified UPImage/Assets.xcassets/AppIcon.appiconset/Icon_256x256.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified UPImage/Assets.xcassets/AppIcon.appiconset/Icon_32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified UPImage/Assets.xcassets/AppIcon.appiconset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified UPImage/Assets.xcassets/AppIcon.appiconset/Icon_512x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified UPImage/Assets.xcassets/AppIcon.appiconset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified UPImage/Assets.xcassets/Icon_128x128.imageset/Icon_128x128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
6 changes: 3 additions & 3 deletions UPImage/ImagePreferencesViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class ImagePreferencesViewController: NSViewController, MASPreferencesViewContro
override func viewDidLoad() {
super.viewDidLoad()

if AppCache.shared.useDefServer {
if !AppCache.shared.useDefServer {
statusLabel.cell?.title = "目前使用自定义图床"
statusLabel.textColor = .magenta
} else {
Expand All @@ -43,7 +43,7 @@ class ImagePreferencesViewController: NSViewController, MASPreferencesViewContro

}
@IBAction func setDefault(_ sender: AnyObject) {
AppCache.shared.useDefServer = false
AppCache.shared.useDefServer = true
statusLabel.cell?.title = "目前使用默认图床"
statusLabel.textColor = .red

Expand Down Expand Up @@ -88,7 +88,7 @@ class ImagePreferencesViewController: NSViewController, MASPreferencesViewContro
"scope":(self?.bucketTextField.cell?.title)!,
"secretKey":(self?.secretKeyTextField.cell?.title)!]
AppCache.shared.setQNConfig(configDic: QN_Config);
AppCache.shared.useDefServer = true
AppCache.shared.useDefServer = false

}).Failure(failure: { _ in
self?.showAlert("验证失败", informative: "验证失败,请仔细填写信息。")
Expand Down
4 changes: 2 additions & 2 deletions UPImage/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.3.3</string>
<string>1.4</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>231</string>
<string>300</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.productivity</string>
<key>LSMinimumSystemVersion</key>
Expand Down

0 comments on commit 9f88b43

Please sign in to comment.