Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #2146: SWIPE DELETE FUNCTION FREEZES APP #2157

Merged
merged 2 commits into from
Apr 11, 2024
Merged

Fix #2146: SWIPE DELETE FUNCTION FREEZES APP #2157

merged 2 commits into from
Apr 11, 2024

Conversation

tian-lt
Copy link
Contributor

@tian-lt tian-lt commented Apr 10, 2024

Fix #2146

Root cause

Stackoverflow when removing a history item by swiping.
SetChildAsHistory() has side effects even if the current panel is History already. PR #2116 added UpdateHistoryState into the callback of propertychanged, which forms a cycle of the implicit invocations trigged by databinding.

Fix

Make sure SetChildAsHistory() has no side effects if there nothing to change.
Updated SetChildAsMemory() accordingly.

@hanzhang54
Copy link
Contributor

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@tian-lt tian-lt merged commit 1bc539f into main Apr 11, 2024
7 checks passed
@tian-lt tian-lt deleted the u/tilia/fixswipe branch April 11, 2024 06:34
tian-lt added a commit that referenced this pull request Apr 28, 2024
@tian-lt tian-lt mentioned this pull request Apr 28, 2024
tian-lt added a commit that referenced this pull request Apr 28, 2024
* Fix #2146: SWIPE DELETE FUNCTION FREEZES APP (#2157)

* fix stackoverflow

* space

* Multi-instance (#2161)

* launch multi instances

* trace error

* simplify the graphing test

* remove an assertion

* simplify some code

* remove some trivial code.

* fix runtime cast

* Resize on the first launch (#2165)
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.

SWIPE DELETE FUNCTION FREEZES APP
2 participants