Fix confusion around focus and scrollbar position settings not being consistent
This commit is contained in:
parent
df7a3b978d
commit
1bcbe94e6a
|
@ -121,7 +121,7 @@ class PrefsEditor:
|
||||||
active = 0
|
active = 0
|
||||||
if focus == 'click':
|
if focus == 'click':
|
||||||
active = 1
|
active = 1
|
||||||
elif focus == 'sloppy':
|
elif focus in ['sloppy', 'mouse']:
|
||||||
active = 2
|
active = 2
|
||||||
widget = guiget('focuscombo')
|
widget = guiget('focuscombo')
|
||||||
widget.set_active(active)
|
widget.set_active(active)
|
||||||
|
@ -380,7 +380,7 @@ class PrefsEditor:
|
||||||
value = self.config['scrollbar_position']
|
value = self.config['scrollbar_position']
|
||||||
if value == 'left':
|
if value == 'left':
|
||||||
widget.set_active(0)
|
widget.set_active(0)
|
||||||
elif value == 'disabled':
|
elif value in ['disabled', 'hidden']:
|
||||||
widget.set_active(2)
|
widget.set_active(2)
|
||||||
else:
|
else:
|
||||||
widget.set_active(1)
|
widget.set_active(1)
|
||||||
|
@ -534,7 +534,7 @@ class PrefsEditor:
|
||||||
value = 'left'
|
value = 'left'
|
||||||
elif selected == 1:
|
elif selected == 1:
|
||||||
value = 'right'
|
value = 'right'
|
||||||
elif selected ==2:
|
elif selected == 2:
|
||||||
value = 'hidden'
|
value = 'hidden'
|
||||||
self.config['scrollbar_position'] = value
|
self.config['scrollbar_position'] = value
|
||||||
# Scrollback lines
|
# Scrollback lines
|
||||||
|
|
Loading…
Reference in New Issue