<p><a class="user-mention" data-hovercard-type="user" data-hovercard-url="/hovercards?user_id=695971" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/scriptum">@scriptum</a> Yes, GTK doesn't maintain tree view fold state below folded elements for you.  However, that doesn't mean elements get folded seemingly randomly :)<br>
The issue I mentioned is not that folding an element and unfolding it doesn't restore children's fold state, but that for some reason when right-clicking (which opens a contextual menu) rows get folded.  Also, keeping fold state when changing mode is something the app will likely have to do, because it changes the hierarchy, so there's no real magic that can be done, it's up to the app to know which new row corresponds to which old one, and thus map fold states if wanted.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/pull/1813#issuecomment-443615400">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABDrJ7Syd7KX9pXtkT7nh8S_l9gIqlp9ks5u1NS1gaJpZM4SyLKn">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABDrJ8741yVd1CN0VDJ5i_JvO2OPpkr5ks5u1NS1gaJpZM4SyLKn.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/geany/geany","title":"geany/geany","subtitle":"GitHub repository","main_image_url":"https://assets-cdn.github.com/images/email/message_cards/header.png","avatar_image_url":"https://assets-cdn.github.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/geany/geany"}},"updates":{"snippets":[{"icon":"PERSON","message":"@b4n in #1813: @scriptum Yes, GTK doesn't maintain tree view fold state below folded elements for you.  However, that doesn't mean elements get folded seemingly randomly :)\r\nThe issue I mentioned is not that folding an element and unfolding it doesn't restore children's fold state, but that for some reason when right-clicking (which opens a contextual menu) rows get folded.  Also, keeping fold state when changing mode is something the app will likely have to do, because it changes the hierarchy, so there's no real magic that can be done, it's up to the app to know which new row corresponds to which old one, and thus map fold states if wanted."}],"action":{"name":"View Pull Request","url":"https://github.com/geany/geany/pull/1813#issuecomment-443615400"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/pull/1813#issuecomment-443615400",
"url": "https://github.com/geany/geany/pull/1813#issuecomment-443615400",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
},
{
"@type": "MessageCard",
"@context": "http://schema.org/extensions",
"hideOriginalBody": "false",
"originator": "AF6C5A86-E920-430C-9C59-A73278B5EFEB",
"title": "Re: [geany/geany] Rpg sidebar tree (see #259) (#1813)",
"sections": [
{
"text": "",
"activityTitle": "**Colomban Wendling**",
"activityImage": "https://assets-cdn.github.com/images/email/message_cards/avatar.png",
"activitySubtitle": "@b4n",
"facts": [

]
}
],
"potentialAction": [
{
"name": "Add a comment",
"@type": "ActionCard",
"inputs": [
{
"isMultiLine": true,
"@type": "TextInput",
"id": "IssueComment",
"isRequired": false
}
],
"actions": [
{
"name": "Comment",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"IssueComment\",\n\"repositoryFullName\": \"geany/geany\",\n\"issueId\": 1813,\n\"IssueComment\": \"{{IssueComment.value}}\"\n}"
}
]
},
{
"name": "Close pull request",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"PullRequestClose\",\n\"repositoryFullName\": \"geany/geany\",\n\"pullRequestId\": 1813\n}"
},
{
"targets": [
{
"os": "default",
"uri": "https://github.com/geany/geany/pull/1813#issuecomment-443615400"
}
],
"@type": "OpenUri",
"name": "View on GitHub"
},
{
"name": "Unsubscribe",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"MuteNotification\",\n\"threadId\": 315142823\n}"
}
],
"themeColor": "26292E"
}
]</script>