Skip to content
This repository has been archived by the owner on May 24, 2022. It is now read-only.

feat: Add Reload to taskbar menu in development only #468

Merged
merged 4 commits into from
Mar 20, 2019

Conversation

ltfschoen
Copy link
Contributor

In the development environment only, when running Fether with yarn start, we have a known issue where a blank screen appears and we have to reload the window. On macOS and some Linux OS this is not an issue when the taskbar menu is available. However on Windows, there is no taskbar menu, so there user cannot choose "Reload" from the menu, since the menu that's shown upon right-click in the Fether window is only available in development after reloading the window.

As discussed with @Tbaut, propose to add "Reload" as an item to the menu that's show when you click the taskbar icon, so it will now show:

development

Show/Hide Fether
Reload
Quit

production

Show/Hide Fether
Quit

Copy link
Collaborator

@Tbaut Tbaut left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Collaborator

@amaury1093 amaury1093 left a comment

Choose a reason for hiding this comment

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

👍 can merge right after the tiny change

@@ -156,7 +156,7 @@ const getMenubarMenuTemplate = fetherApp => {

const getContextTrayMenuTemplate = fetherApp => {
if (fetherApp.options.withTaskbar) {
const template = [
let template = [
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should be const here, the array is mutable, but the reference is not.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@amaurymartiny I've pushed a commit to address your comment

@Tbaut Tbaut merged commit 93d7cfc into master Mar 20, 2019
@Tbaut Tbaut deleted the luke-reload-development branch March 20, 2019 12:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants