Skip to content

Commit 81f1622

Browse files
authored
Merge pull request #696 from Caldis/dev/control
dev/control
2 parents c7d9af4 + 69fa10c commit 81f1622

File tree

148 files changed

+10608
-473
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

148 files changed

+10608
-473
lines changed

.gitignore

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
1-
# RESOURCES
1+
# docs
22
docs/.idea
3+
docs/.next
34
docs/node_modules
4-
Resource/DMG
5-
Resource/Designs
65

7-
# SYS
6+
# macOS
87
.DS_Store
98

10-
# Xcode
9+
# XCode
1110
xcuserdata
1211
*.xcuserstate
1312
*.xcuserdated
14-
Mos.xcodeproj/project.xcworkspace/xcuserdata/Caldis.xcuserdatad/UserInterfaceState.xcuserstate

Mos.xcodeproj/project.pbxproj

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
objects = {
88

99
/* Begin PBXBuildFile section */
10+
0B02ADB12D38EDA000DE4132 /* DesktopManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0B02ADB02D38EDA000DE4132 /* DesktopManager.swift */; };
1011
0B12EF1A203AD9C80058B169 /* Options.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0B12EF19203AD9C80058B169 /* Options.swift */; };
1112
0B12EF1D203ADD230058B169 /* ScrollUtils.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0B12EF1C203ADD230058B169 /* ScrollUtils.swift */; };
1213
0B12EF1F203ADFB10058B169 /* Interpolator.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0B12EF1E203ADFB10058B169 /* Interpolator.swift */; };
@@ -62,6 +63,7 @@
6263
0B02ADA72D312AB500DE4132 /* el */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = el; path = el.lproj/Localizable.strings; sourceTree = "<group>"; };
6364
0B02ADA82D312ABB00DE4132 /* uk */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = uk; path = uk.lproj/Main.strings; sourceTree = "<group>"; };
6465
0B02ADA92D312ABB00DE4132 /* uk */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = uk; path = uk.lproj/Localizable.strings; sourceTree = "<group>"; };
66+
0B02ADB02D38EDA000DE4132 /* DesktopManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DesktopManager.swift; sourceTree = "<group>"; };
6567
0B0D5B5A2066195A0077C2AC /* ja */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = ja; path = ja.lproj/Main.strings; sourceTree = "<group>"; };
6668
0B0D5B5C206619680077C2AC /* zh-Hant */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hant"; path = "zh-Hant.lproj/Main.strings"; sourceTree = "<group>"; };
6769
0B0D5B5D2066197B0077C2AC /* ja */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = ja; path = ja.lproj/Localizable.strings; sourceTree = "<group>"; };
@@ -223,6 +225,7 @@
223225
0B6D3B672041A790004CC064 /* WindowManager.swift */,
224226
23BB4D2E21D754D3009B51E9 /* PopoverManager.swift */,
225227
0BD39F67204EFC6C000CCC42 /* StatusItemManager.swift */,
228+
0B02ADB02D38EDA000DE4132 /* DesktopManager.swift */,
226229
);
227230
path = Managers;
228231
sourceTree = "<group>";
@@ -449,6 +452,7 @@
449452
0BD39F68204EFC6C000CCC42 /* StatusItemManager.swift in Sources */,
450453
23E9673F23613D1100E652F6 /* PreferencesExceptionInputViewController.swift in Sources */,
451454
232E50A7236B372100265C58 /* PreferencesAdvanceWithApplicationViewController.swift in Sources */,
455+
0B02ADB12D38EDA000DE4132 /* DesktopManager.swift in Sources */,
452456
22A32B331E334B2E00A5CF38 /* PreferencesAboutViewController.swift in Sources */,
453457
0BE4C93B20617C6E0001EA0E /* ScrollFilter.swift in Sources */,
454458
0B6D3B682041A790004CC064 /* WindowManager.swift in Sources */,
@@ -643,12 +647,14 @@
643647
DEVELOPMENT_TEAM = 2H959AEV62;
644648
ENABLE_HARDENED_RUNTIME = NO;
645649
INFOPLIST_FILE = Mos/Info.plist;
650+
INFOPLIST_KEY_CFBundleDisplayName = Mos;
651+
INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.utilities";
646652
LD_RUNPATH_SEARCH_PATHS = (
647653
"$(inherited)",
648654
"@executable_path/../Frameworks",
649655
);
650656
MACOSX_DEPLOYMENT_TARGET = 10.13;
651-
MARKETING_VERSION = 3.5.0;
657+
MARKETING_VERSION = 3.5.1;
652658
MTL_ENABLE_DEBUG_INFO = NO;
653659
PRODUCT_BUNDLE_IDENTIFIER = com.caldis.Mos;
654660
PRODUCT_NAME = "$(TARGET_NAME)";
@@ -679,12 +685,14 @@
679685
ENABLE_HARDENED_RUNTIME = NO;
680686
GCC_OPTIMIZATION_LEVEL = fast;
681687
INFOPLIST_FILE = Mos/Info.plist;
688+
INFOPLIST_KEY_CFBundleDisplayName = Mos;
689+
INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.utilities";
682690
LD_RUNPATH_SEARCH_PATHS = (
683691
"$(inherited)",
684692
"@executable_path/../Frameworks",
685693
);
686694
MACOSX_DEPLOYMENT_TARGET = 10.13;
687-
MARKETING_VERSION = 3.5.0;
695+
MARKETING_VERSION = 3.5.1;
688696
MTL_ENABLE_DEBUG_INFO = NO;
689697
PRODUCT_BUNDLE_IDENTIFIER = com.caldis.Mos;
690698
PRODUCT_NAME = "$(TARGET_NAME)";

Mos.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Mos.xcodeproj/xcshareddata/xcschemes/Debug.xcscheme

Lines changed: 0 additions & 135 deletions
This file was deleted.

Mos.xcodeproj/xcuserdata/Caldis.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,4 @@
33
uuid = "32EA6F78-F020-42D7-AE40-730D164E821A"
44
type = "1"
55
version = "2.0">
6-
<Breakpoints>
7-
<BreakpointProxy
8-
BreakpointExtensionID = "Xcode.Breakpoint.ExceptionBreakpoint">
9-
<BreakpointContent
10-
uuid = "737FF52F-5223-411B-8F37-5CE0D46FACB4"
11-
shouldBeEnabled = "Yes"
12-
ignoreCount = "0"
13-
continueAfterRunningActions = "No"
14-
breakpointStackSelectionBehavior = "1"
15-
scope = "1"
16-
stopOnStyle = "0">
17-
</BreakpointContent>
18-
</BreakpointProxy>
19-
</Breakpoints>
206
</Bucket>

Mos.xcodeproj/xcuserdata/Caldis.xcuserdatad/xcschemes/xcschememanagement.plist

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@
44
<dict>
55
<key>SchemeUserState</key>
66
<dict>
7-
<key>Debug.xcscheme_^#shared#^_</key>
7+
<key>Debug.xcscheme</key>
88
<dict>
9+
<key>isShown</key>
10+
<false/>
911
<key>orderHint</key>
1012
<integer>0</integer>
1113
</dict>
@@ -49,12 +51,12 @@
4951
<key>isShown</key>
5052
<false/>
5153
<key>orderHint</key>
52-
<integer>1</integer>
54+
<integer>2</integer>
5355
</dict>
5456
<key>Profile.xcscheme_^#shared#^_</key>
5557
<dict>
5658
<key>orderHint</key>
57-
<integer>4</integer>
59+
<integer>1</integer>
5860
</dict>
5961
</dict>
6062
<key>SuppressBuildableAutocreation</key>

Mos/AppDelegate.swift

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,18 @@ class AppDelegate: NSObject, NSApplicationDelegate {
1313

1414
// 运行前预处理
1515
func applicationWillFinishLaunching(_ notification: Notification) {
16-
// DEBUG
17-
// 清空用户设置
16+
// 禁止重复运行, 结束正在运行的实例
17+
Utils.preventMultiRunning(killExist: true)
18+
19+
// DEBUG: 清空用户设置
1820
// UserDefaults.standard.removePersistentDomain(forName: Bundle.main.bundleIdentifier!)
19-
// 直接弹出设置窗口
20-
// WindowManager.shared.showWindow(withIdentifier: WINDOW_IDENTIFIER.preferencesWindowController)
2121

22-
// 开始
23-
// 禁止重复运行
24-
Utils.preventMultiRunning(killExist: true)
2522
// 读取用户设置
2623
Options.shared.readOptions()
24+
25+
// DEBUG: 直接弹出设置窗口
26+
// WindowManager.shared.showWindow(withIdentifier: WINDOW_IDENTIFIER.preferencesWindowController)
27+
2728
// 监听用户切换, 在切换用户 session 时停止运行
2829
NSWorkspace.shared.notificationCenter.addObserver(
2930
self,
@@ -43,6 +44,7 @@ class AppDelegate: NSObject, NSApplicationDelegate {
4344
startWithAccessibilityPermissionsChecker(nil)
4445
}
4546

47+
// 用户双击打开应用程序
4648
func applicationShouldHandleReopen(_ sender: NSApplication, hasVisibleWindows flag: Bool) -> Bool {
4749
guard !flag else {
4850
return true
@@ -52,6 +54,7 @@ class AppDelegate: NSObject, NSApplicationDelegate {
5254
}
5355
return false
5456
}
57+
5558
// 关闭前停止滚动处理
5659
func applicationWillTerminate(_ aNotification: Notification) {
5760
ScrollCore.shared.endHandlingScroll()

0 commit comments

Comments
 (0)