Skip to content

Commit

Permalink
🐛 修复单文件的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
tw93 committed Aug 8, 2022
1 parent 8282833 commit ecb5b0d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
8 changes: 2 additions & 6 deletions Mac/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -310,13 +310,9 @@ class ViewController:
refreshMiaoYanNum()
if UserDefaultsManagement.isSingleMode {
DispatchQueue.main.asyncAfter(deadline: .now() + 0.1) {
let singleModeUrl = URL(fileURLWithPath: UserDefaultsManagement.singleModePath)
if !FileManager.default.directoryExists(atUrl: singleModeUrl) {
self.hideNoteList("")
} else {
self.hideSidebar("")
}
self.hideSidebar("")
}

// hack for crash
DispatchQueue.main.asyncAfter(deadline: .now() + 1.0) {
self.toastInSingleMode()
Expand Down
8 changes: 4 additions & 4 deletions MiaoYan.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1186,7 +1186,7 @@
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 1.3.0;
CURRENT_PROJECT_VERSION = 1.3.1;
DEVELOPMENT_TEAM = 5EH69Y5X38;
EMBED_ASSET_PACKS_IN_PRODUCT_BUNDLE = YES;
ENABLE_HARDENED_RUNTIME = YES;
Expand All @@ -1199,7 +1199,7 @@
INFOPLIST_FILE = Mac/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks";
MACOSX_DEPLOYMENT_TARGET = 10.13;
MARKETING_VERSION = 1.3.0;
MARKETING_VERSION = 1.3.1;
ONLY_ACTIVE_ARCH = YES;
PRODUCT_BUNDLE_IDENTIFIER = com.tw93.MiaoYan;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand All @@ -1222,7 +1222,7 @@
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 1.3.0;
CURRENT_PROJECT_VERSION = 1.3.1;
DEPLOYMENT_LOCATION = NO;
DEVELOPMENT_TEAM = 5EH69Y5X38;
EMBED_ASSET_PACKS_IN_PRODUCT_BUNDLE = YES;
Expand All @@ -1236,7 +1236,7 @@
INFOPLIST_FILE = Mac/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks";
MACOSX_DEPLOYMENT_TARGET = 10.13;
MARKETING_VERSION = 1.3.0;
MARKETING_VERSION = 1.3.1;
ONLY_ACTIVE_ARCH = YES;
PRODUCT_BUNDLE_IDENTIFIER = com.tw93.MiaoYan;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand Down

0 comments on commit ecb5b0d

Please sign in to comment.