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

Comments please: #359

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Comments please: #359

wants to merge 4 commits into from

Conversation

lancew
Copy link
Contributor

@lancew lancew commented Oct 5, 2019

This set of commits provides a setting to save open tabs, o that when you close and reopen patchbay it retains the tabs you had open when you closed it.

Improvements, suggestions, mentoring on better approaches welcomed.

This toggles the setting to save tabs when you close patchbay.

The setting is not yet enabled.
If the setting is enabled, then when we open a new tab, check if it
is already in the list; if not add it.
If the save open tabs feature enabled, then if the page is in the
opne tabs list, delete it from the list when closing the tab.
Based on the saved open tabs checkbox setting we will open on load
all the tabs either from the default list or from save open tabs.
const saveTabs = api.settings.obs.get('patchbay.saveTabs', false)
if (saveTabs()) {
const openTabs = api.settings.obs.get('patchbay.openTabs', [])
var _tabs = openTabs()
Copy link

Choose a reason for hiding this comment

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

If using const, why not use let instead of var to be a tiny bit more strict regarding variable access?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thx... will do.
I "think" I can use api.settings.sync.get rather than obs.get too

@stale
Copy link

stale bot commented Jan 3, 2020

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

@stale stale bot added the stale label Jan 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants