Skip to content

Commit a24227b

Browse files
committed
Don't force update the screen on the Packages tab
1 parent f48f23f commit a24227b

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,6 @@ This is valid:\
1010

1111
While this will not ignore hidden files:\
1212
`fssize . --ignore-hidden-files`
13+
14+
# Known issues
15+
Selecting an area with the mouse (atleast in xterm) can hang the application until it is unselected or a key is pressed

main.go

+4-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616
)
1717

1818
const programName = "fssize"
19-
const version = "v0.0.3"
19+
const version = "v0.0.4"
2020

2121
func printError(str string) {
2222
os.Stderr.WriteString("\x1b[0;31m" + programName + ": " + str + "\x1b[0m\n")
@@ -158,7 +158,9 @@ This outputs the estimated kibibyte (KiB) size of all packages`)
158158
go func() {
159159
for fssize.accumulating {
160160
time.Sleep(250 * time.Millisecond)
161-
app.QueueUpdateDraw(func() {})
161+
if fssize.currentTab != Packages {
162+
app.QueueUpdateDraw(func() {})
163+
}
162164
}
163165
}()
164166

0 commit comments

Comments
 (0)