Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Added dock menu for macOS #6087

Merged
merged 1 commit into from
Dec 9, 2016
Merged

Conversation

NejcZdovc
Copy link
Contributor

@NejcZdovc NejcZdovc commented Dec 8, 2016

  • Submitted a ticket for my issue if one did not already exist.
  • Used Github auto-closing keywords in the commit message.
  • Added/updated tests for this change (for new code or code which already has tests).
  • Ran git rebase -i to squash commits (if needed).

Description

Resolves #3024. As far as I can see the second part of this issue the list of windows is already done.

Added doc menu for macOS with items:

  • new window

Auditors

@bbondy, @bsclifton

Test Plan

Open Brave on macOS. Right click on the icon in the dock. There should be a menu item named "New window". Clicking on it should open a new Brave window.

@NejcZdovc
Copy link
Contributor Author

NejcZdovc commented Dec 8, 2016

I would also like to add New private window option, but as far as I can see Brave don't have this option. Any suggestions how to achieve this?

@cndouglas
Copy link

@NejcZdovc Works great, thanks! Since New Private Window is not implemented yet, I think it can be left out for now. (Tracked under #1288.)

return [
{
label: locale.translation('newWindow'),
accelerator: 'CmdOrCtrl+N',
Copy link
Member

Choose a reason for hiding this comment

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

do we need accelerator for dock menu?

Copy link
Member

Choose a reason for hiding this comment

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

@darkdh no, I don't think we do; I believe it may have been copy/pasted on accident

Here is the API doc for reference:
http://electron.atom.io/docs/tutorial/desktop-environment-integration/#custom-dock-menu-macos

Copy link
Member

Choose a reason for hiding this comment

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

@ NejcZdovc, I think we should remove accelerator.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, it's removed.

@bsclifton bsclifton assigned darkdh and unassigned bsclifton Dec 9, 2016
Resolves brave#3024

Added doc menu for macOS with items:
- new window

Auditors: @bbondy, @bsclifton

Test Plan:
Open Brave on macOS. Right click on the icon in the dock. There should be a menu item named "New window". Clicking on it should open new Brave window.
@darkdh
Copy link
Member

darkdh commented Dec 9, 2016

good job! Thanks

@darkdh darkdh merged commit 5ee0d07 into brave:master Dec 9, 2016
@luixxiul luixxiul added this to the 0.13.0 milestone Dec 9, 2016
@bsclifton
Copy link
Member

bsclifton commented Dec 9, 2016

Very cool- thanks, @NejcZdovc! 😄

@luixxiul luixxiul mentioned this pull request Jan 16, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants