mirror of
https://github.com/MustangYM/OSXChatGpt.git
synced 2025-11-25 03:15:08 +08:00
Fix bug
This commit is contained in:
1
Applications
Symbolic link
1
Applications
Symbolic link
@@ -0,0 +1 @@
|
||||
/Applications/
|
||||
@@ -413,7 +413,7 @@
|
||||
"@executable_path/../Frameworks",
|
||||
);
|
||||
MACOSX_DEPLOYMENT_TARGET = 13.0;
|
||||
MARKETING_VERSION = 1.0.0;
|
||||
MARKETING_VERSION = 1.0.1;
|
||||
PRODUCT_BUNDLE_IDENTIFIER = MustangYM.OSXChatGPT.OSXChatGPT;
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
SWIFT_EMIT_LOC_STRINGS = YES;
|
||||
@@ -441,7 +441,7 @@
|
||||
"@executable_path/../Frameworks",
|
||||
);
|
||||
MACOSX_DEPLOYMENT_TARGET = 13.0;
|
||||
MARKETING_VERSION = 1.0.0;
|
||||
MARKETING_VERSION = 1.0.1;
|
||||
PRODUCT_BUNDLE_IDENTIFIER = MustangYM.OSXChatGPT.OSXChatGPT;
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
SWIFT_EMIT_LOC_STRINGS = YES;
|
||||
|
||||
@@ -9,12 +9,12 @@ import SwiftUI
|
||||
import AppKit
|
||||
/// main View
|
||||
struct MainContentView: View {
|
||||
@State var openArgumentsSeet: Bool = false
|
||||
var body: some View {
|
||||
NavigationView {
|
||||
SessionsView()
|
||||
UserInitializeView()
|
||||
}.toolbar {
|
||||
}
|
||||
.toolbar {
|
||||
ToolbarItem(placement: .navigation) {
|
||||
Button {
|
||||
NSApp.keyWindow?.firstResponder?.tryToPerform(
|
||||
@@ -26,7 +26,6 @@ struct MainContentView: View {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -62,6 +62,7 @@ struct UserInitializeView: View {
|
||||
}
|
||||
}
|
||||
|
||||
//**BorderlessButtonStyle() -> PlainButtonStyle(), 前者导致侧边栏无法展开
|
||||
VStack (spacing: 10, content: {
|
||||
Button(action: {
|
||||
if let url = URL(string: "https://github.com/MustangYM/OSXChatGpt") {
|
||||
@@ -75,8 +76,8 @@ struct UserInitializeView: View {
|
||||
.frame(maxWidth: 250, alignment: .leading)
|
||||
.padding(.horizontal, 5)
|
||||
})
|
||||
}.buttonStyle(BorderlessButtonStyle())//删除背景色
|
||||
|
||||
}.buttonStyle(PlainButtonStyle())//删除背景色
|
||||
|
||||
Button(action: {
|
||||
if let url = URL(string: "https://www.yemays.com/") {
|
||||
NSWorkspace.shared.open(url)
|
||||
@@ -89,8 +90,8 @@ struct UserInitializeView: View {
|
||||
.frame(maxWidth: 250, alignment: .leading)
|
||||
.padding(.horizontal, 5)
|
||||
})
|
||||
}.buttonStyle(BorderlessButtonStyle())//删除背景色
|
||||
|
||||
}.buttonStyle(PlainButtonStyle())//删除背景色
|
||||
|
||||
Button(action: {
|
||||
if let url = URL(string: "https://5imac.net/") {
|
||||
NSWorkspace.shared.open(url)
|
||||
@@ -103,7 +104,7 @@ struct UserInitializeView: View {
|
||||
.frame(maxWidth: 250, alignment: .leading)
|
||||
.padding(.horizontal, 5)
|
||||
})
|
||||
}.buttonStyle(BorderlessButtonStyle())//删除背景色
|
||||
}.buttonStyle(PlainButtonStyle())//删除背景色
|
||||
})
|
||||
|
||||
// 添加API密钥按钮
|
||||
@@ -144,7 +145,7 @@ struct UserInitializeView: View {
|
||||
|
||||
VStack {
|
||||
Spacer()
|
||||
Text("Beta v \(UserInitializeView.appVersion)")
|
||||
Text("Beta v\(UserInitializeView.appVersion)")
|
||||
.font(.system(size: 12, weight: .light, design: .rounded))
|
||||
.opacity(0.5)
|
||||
Spacer().frame(height: 30)
|
||||
|
||||
Reference in New Issue
Block a user