Skip to content

fix: dispose controllers of TerminalView #132

Merged
xtyxtyx merged 2 commits intoTerminalStudio:masterfrom
tauu:fix-terminalview-dispose
Sep 19, 2022
Merged

fix: dispose controllers of TerminalView #132
xtyxtyx merged 2 commits intoTerminalStudio:masterfrom
tauu:fix-terminalview-dispose

Conversation

@tauu
Copy link
Copy Markdown
Contributor

@tauu tauu commented Sep 15, 2022

This PR fixes two issues with the TerminalView state.

First the _focusNode property may not be final as it can be overridden, if the widget updates and specifies another FocusNode object.

Second the TerminalController and the ScrollController have to be disposed if they were crated during state initialisation or during a widget update.

@xtyxtyx xtyxtyx merged commit c1f0b94 into TerminalStudio:master Sep 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants