Compare commits
1 Commits
v0.1.3-tes
...
v0.1.3-tes
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
289337f016 |
@@ -9,6 +9,7 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"regexp"
|
"regexp"
|
||||||
|
"runtime"
|
||||||
"runtime/debug"
|
"runtime/debug"
|
||||||
"sort"
|
"sort"
|
||||||
"strconv"
|
"strconv"
|
||||||
@@ -328,6 +329,9 @@ func guiLog(text string) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func runNativeGUI(initialTab string) error {
|
func runNativeGUI(initialTab string) error {
|
||||||
|
runtime.LockOSThread()
|
||||||
|
defer runtime.UnlockOSThread()
|
||||||
|
|
||||||
user32 := syscall.NewLazyDLL("user32.dll")
|
user32 := syscall.NewLazyDLL("user32.dll")
|
||||||
kernel32 := syscall.NewLazyDLL("kernel32.dll")
|
kernel32 := syscall.NewLazyDLL("kernel32.dll")
|
||||||
gdi32 := syscall.NewLazyDLL("gdi32.dll")
|
gdi32 := syscall.NewLazyDLL("gdi32.dll")
|
||||||
@@ -990,6 +994,10 @@ func refreshGUI(setWindowText *syscall.LazyProc, app *guiApp, reloadData bool) {
|
|||||||
if app == nil {
|
if app == nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
if app.activeTab == "history" && !reloadData {
|
||||||
|
syncPaneVisibility(app)
|
||||||
|
return
|
||||||
|
}
|
||||||
start := time.Now()
|
start := time.Now()
|
||||||
defer func() {
|
defer func() {
|
||||||
if d := time.Since(start); d > 100*time.Millisecond {
|
if d := time.Since(start); d > 100*time.Millisecond {
|
||||||
|
|||||||
Reference in New Issue
Block a user