Beispiel #1
0
func (w *MainWindow) open() {
	if w.maybeSave() {
		filename := ui.QFileDialogGetOpenFileName()
		if filename != "" {
			w.loadFile(filename)
		}
	}
}
Beispiel #2
0
func (w *MainWindow) openOnionHostname() {
	filename := ui.QFileDialogGetOpenFileName()
	if filename != "" {
		w.loadFile(filename, "onion-hostname")
	}
}
Beispiel #3
0
func (w *MainWindow) openMessage() {
	filename := ui.QFileDialogGetOpenFileName()
	if filename != "" {
		w.loadFile(filename, "message")
	}
}