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

feat: Update context menu entry if no profiles #115

Merged
merged 2 commits into from
Jan 28, 2024

Conversation

DanSM-5
Copy link
Contributor

@DanSM-5 DanSM-5 commented Jan 23, 2024

Update to change to a single entry in context menu if no profiles.

Solves: #114

@woodruffw
Copy link
Owner

Thanks! Will review tonight.

ff2mpv.js Outdated
}
}

function createProfile(profile) {
let os = '';
Copy link
Owner

Choose a reason for hiding this comment

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

This mutable global state feels a little funny -- can't we call getOS twice or, even better, call it just once to set a global TITLE constant based on the right host?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've defined TITLE as a global variable. Let me know if it looks better know.

Copy link
Owner

@woodruffw woodruffw left a comment

Choose a reason for hiding this comment

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

One comment/question, otherwise this looks pretty good to me. Thanks @DanSM-5!

@woodruffw woodruffw merged commit 75d7bc5 into woodruffw:master Jan 28, 2024
8 checks passed
@DanSM-5 DanSM-5 deleted the feat/single-entry-context branch July 28, 2024 21:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants