-
-
Notifications
You must be signed in to change notification settings - Fork 101
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
Tabs and tab-zooms not saved to settings continuously #741
Comments
Where a setting corresponds to a simple property of the app (e.g. a boolean or integer value) then it is easy to bind the two together so that they automaticaly keep in sync. However a list of uris is not a simple property and the setting has to be constructed in a function. I guess this is why it is done like this. However, it would not be too onerous to call the function whenever the tabs or zooms change, I think. This would also fix the issue of the tabs/zooms not being stored if the session is ended without closing the app. |
@jeremypw I made these changes https://github.com/ldrahnik/terminal/pull/1/files and it works when is tab removed or tabs are reordered but does not when a new tab is appended what is weird, in this situation is current state updated to gsettings with delay one opened tab, I do not know why atm. Do not you know? Anyway, I am satisfied even with this version which I will use on my laptop because of reason mentioned above. I can try finish work on this and make PR if you want. Let me know. EDIT: About the new tab, I only misunderstood the purpose of the notebook events |
@jeremypw Save on events zoom in/out committed. |
@ldrahnik Thanks for looking into this! If you prepare a PR I would be happy to review it for you and merge when ready. You may need to update the gsettings in an Idle loop if it is being done in a signal handler to make sure everything is handled before saving the state. |
@jeremypw About tests I can imagine something like ldrahnik@21f9633 (not finished) |
@ldrahnik Yes, it makes sense to have tests that are explicitly designed for both situations (restore and not restore). |
Looks like this has been fixed. |
What Happened?
When I open the terminal via
io.elementary.terminal
(--version
isio.elementary.terminal 6.1.2
) and togetherdconf
(/io/elementary/terminal/saved-state/
) I see immediately updated all values excepttabs
andtab-zooms
. Is that a known limitation or it should work? If yes please could you guide me on what I do wrong? Because otherwindow-position
,window-size
evenfocused-tab
are saved fine, immediately.I discovered that values
tabs
andtab-zooms
are saved when is the terminal closed manually but then when is the terminal opened and the state is restored successfully is valuetabs
in dconf reset to an empty array and valuetab-zooms
is not updated but is not reset , in my eyes it confirms does not work only continuous saving. Anyway would be helpful to have this continuous feature working as I forget a lot of times to close the terminal app before is my laptop suspended or rebooted.Steps to Reproduce
io.elementary.terminal
(--version
->io.elementary.terminal 6.1.2
)/io/elementary/terminal/saved-state/
tabs
andtab-zooms
should reflect current state / be changed continually not only when is terminal app closed manuallyExpected Behavior
Be able to restore the last tabs with defined zooms without closing the terminal manually.
OS Version
7.x (Horus)
Software Version
Latest release (I have run all updates)
Log Output
Hardware Info
No response
The text was updated successfully, but these errors were encountered: