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