mirror of
https://github.com/LorenEteval/Furious.git
synced 2026-10-06 22:08:11 +03:00
Fix wrong scroll bar value when switching tab/spaces
Signed-off-by: Loren Eteval <loren.eteval@proton.me>
This commit is contained in:
@@ -48,7 +48,18 @@ class SettingsChildAction(Action):
|
||||
else:
|
||||
APP().ShowTabAndSpacesInEditor = Switch.OFF
|
||||
|
||||
APP().ServerWidget.showTabAndSpacesIfNecessary()
|
||||
# Reference
|
||||
ServerWidget = APP().ServerWidget
|
||||
|
||||
currentFocus = ServerWidget.currentFocus
|
||||
|
||||
if currentFocus >= 0:
|
||||
ServerWidget.saveScrollBarValue(currentFocus)
|
||||
|
||||
ServerWidget.showTabAndSpacesIfNecessary()
|
||||
|
||||
if currentFocus >= 0:
|
||||
ServerWidget.restoreScrollBarValue(currentFocus)
|
||||
|
||||
|
||||
class RoutingChildAction(Action):
|
||||
|
||||
Reference in New Issue
Block a user