mirror of
https://github.com/StikDebug/StikDebug.git
synced 2026-10-15 20:10:30 +00:00
Fix visual bugs
This commit is contained in:
parent
1a46dee065
commit
bfa33ec243
3 changed files with 13 additions and 22 deletions
|
|
@ -245,7 +245,9 @@ struct HomeView: View {
|
|||
pairingFileExists = true
|
||||
}
|
||||
|
||||
startHeartbeatInBackground()
|
||||
DispatchQueue.main.async {
|
||||
startHeartbeatInBackground(requireVPNConnection: false)
|
||||
}
|
||||
|
||||
let progressTimer = Timer.scheduledTimer(withTimeInterval: 0.05, repeats: true) { t in
|
||||
DispatchQueue.main.async {
|
||||
|
|
@ -1407,14 +1409,11 @@ struct HomeView: View {
|
|||
DispatchQueue.global(qos: .background).async {
|
||||
var scriptData = scriptData
|
||||
var scriptName = scriptName
|
||||
if enableAdvancedOptions,
|
||||
scriptData == nil,
|
||||
if scriptData == nil,
|
||||
let bundleID,
|
||||
let assigned = assignedScript(for: bundleID) {
|
||||
scriptName = assigned.name
|
||||
scriptData = assigned.data
|
||||
} else {
|
||||
// keep passed-in auto script if provided; otherwise nil
|
||||
let preferred = preferredScript(for: bundleID) {
|
||||
scriptName = preferred.name
|
||||
scriptData = preferred.data
|
||||
}
|
||||
|
||||
var callback: DebugAppCallback? = nil
|
||||
|
|
|
|||
|
|
@ -336,20 +336,10 @@ struct ProfileView: View {
|
|||
private func profileActionButton(icon: String, color: Color, action: @escaping () -> Void) -> some View {
|
||||
Button(action: action) {
|
||||
Image(systemName: icon)
|
||||
.font(.system(size: 13, weight: .bold))
|
||||
.foregroundStyle(color.contrastText())
|
||||
.padding(.vertical, 8)
|
||||
.padding(.horizontal, 12)
|
||||
.background(
|
||||
RoundedRectangle(cornerRadius: 12, style: .continuous)
|
||||
.fill(color.opacity(0.9))
|
||||
)
|
||||
.overlay(
|
||||
RoundedRectangle(cornerRadius: 12, style: .continuous)
|
||||
.stroke(Color.white.opacity(0.2), lineWidth: 1)
|
||||
)
|
||||
.font(.system(size: 16, weight: .semibold))
|
||||
.foregroundColor(color)
|
||||
}
|
||||
.buttonStyle(.plain)
|
||||
.buttonStyle(.borderless)
|
||||
}
|
||||
|
||||
private func removeProfilePrompt(entry: Profile) {
|
||||
|
|
|
|||
|
|
@ -222,7 +222,9 @@ struct SettingsView: View {
|
|||
}
|
||||
|
||||
RunLoop.current.add(progressTimer, forMode: .common)
|
||||
startHeartbeatInBackground()
|
||||
DispatchQueue.main.async {
|
||||
startHeartbeatInBackground(requireVPNConnection: false)
|
||||
}
|
||||
|
||||
} catch {
|
||||
print("Error copying file: \(error)")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue