mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
macos: add a reload configuration button
This commit is contained in:
@ -42,7 +42,18 @@ struct ConfigurationErrorsView: View {
|
|||||||
.background(Color.white)
|
.background(Color.white)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
HStack {
|
||||||
|
Spacer()
|
||||||
|
Button("Reload Configuration") { reloadConfig() }
|
||||||
|
.padding([.bottom, .trailing])
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.frame(minWidth: 480, maxWidth: 960, minHeight: 270)
|
.frame(minWidth: 480, maxWidth: 960, minHeight: 270)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private func reloadConfig() {
|
||||||
|
guard let delegate = NSApplication.shared.delegate as? AppDelegate else { return }
|
||||||
|
delegate.reloadConfig(nil)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user