Moved windows actions to mainwindow_init_win.go.
This commit is contained in:
@@ -12,6 +12,7 @@ package ui
|
||||
import (
|
||||
// stdlib
|
||||
"fmt"
|
||||
"runtime"
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
@@ -193,6 +194,11 @@ func (m *MainWindow) Close() {
|
||||
ctx.Cfg.Cfg["/mainwindow/fav_servers/" + fav_servers_columns[i].GetTitle() + "_width"] = strconv.Itoa(fav_servers_columns[i].GetWidth())
|
||||
}
|
||||
|
||||
// Additional actions should be taken on Windows.
|
||||
if runtime.GOOS == "windows" {
|
||||
m.closeWin()
|
||||
}
|
||||
|
||||
ctx.Close()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user