Fix various infobar bugs

Fixes #294
Fixes #295
This commit is contained in:
Zachary Yedidia
2016-09-03 13:28:48 -04:00
parent b5232dd24d
commit c4d6f5e584
2 changed files with 9 additions and 7 deletions

View File

@@ -360,7 +360,7 @@ func main() {
// If the user left clicked we check a couple things
_, h := screen.Size()
x, y := e.Position()
if y == h-1 && messenger.message != "" {
if y == h-1 && messenger.message != "" && globalSettings["infobar"].(bool) {
// If the user clicked in the bottom bar, and there is a message down there
// we copy it to the clipboard.
// Often error messages are displayed down there so it can be useful to easily