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

Expose restore tabs on startup option #2343

Merged
merged 10 commits into from
Apr 16, 2024
Merged

Expose restore tabs on startup option #2343

merged 10 commits into from
Apr 16, 2024

Conversation

jeremypw
Copy link
Collaborator

At the moment the only way to turn off restoring tabs in Files without turning of History for all apps in the System Settings is to edit the gsettings using either dconf-editor or the CLI, which is non-obvious.

This PR adds another switch to the AppMenu to toggle this setting. This is also useful for allowing non-technical users to workaround/diagnose some issues (see #2342 (comment))

@jeremypw jeremypw requested a review from a team January 19, 2024 11:11
@jeremypw
Copy link
Collaborator Author

@danirabbit Is this viable from a UX point of view?

action_name = "win.folders-before-files"
};

var restore_tabs = new Granite.SwitchModelButton (_("Restore Tabs on Starting")) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if this wording is best? When I see "start-up" I think more the machine/OS starting up. I am almost tempted to keep it layman and suggest "Restore Tabs from Last Time" but I am not totally convinced that is a good alternative lol

Copy link
Collaborator Author

@jeremypw jeremypw Feb 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about "Restore Tabs when Launching". Could also include a TRANSLATORS comment to clarify.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like "when Launching" might be too ambiguous.

Web calls this "Restore Tabs on Startup" which would we could go with for consistency
Chrome calls it "Continue where you left off" which feels super ambiguous 😬
Firefox calls this "Show Tabs from Last Time" which I think validates @zeebok here and might be the most clear

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, I'll go with @zeebok 's suggestion then.

@jeremypw jeremypw requested a review from zeebok March 13, 2024 19:28
@jeremypw jeremypw enabled auto-merge (squash) March 20, 2024 10:09
@zeebok
Copy link
Contributor

zeebok commented Mar 27, 2024

Seems like checks failing due to this compile error:

../src/Application.vala:188.17-188.36: error: GLib.ApplicationCommandLine.printerr_literal' is not available in gio-2.0 2.72.4. Use gio-2.0 >= 2.80`

@jeremypw
Copy link
Collaborator Author

@zeebok Yes, this change originated a while back in #2307 but at the time checks passed - I am not sure what has changed since then to cause this failure. @Marukesu Any ideas?

@Marukesu
Copy link
Contributor

It seems to be a mismatch between the vapi and library version.

glib added a wrapper function to the printerr_literal vfunc in 2.80. but the vfunc is older.

@jeremypw
Copy link
Collaborator Author

jeremypw commented Apr 1, 2024

@Marukesu Thanks for the info. Can it be changed back to printerr for now so it passes CI or can it be fixed by changing the workflow (in which case how)? The tests pass when run on OS8.

@Marukesu
Copy link
Contributor

Marukesu commented Apr 1, 2024

Yes, there is no harm in changing it to cmd.printerr().

@jeremypw jeremypw merged commit 4178883 into main Apr 16, 2024
4 checks passed
@jeremypw jeremypw deleted the expose-restore-option branch April 16, 2024 17:05
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.

None yet

4 participants