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

[READY] Added hs.webview.toolbar.uniqueName() #2147

Merged
merged 3 commits into from Aug 25, 2019

Conversation

latenitefilms
Copy link
Contributor

@latenitefilms latenitefilms commented Aug 23, 2019

@latenitefilms latenitefilms changed the title Added hs.webview.toolbar.uniqueName() [READY] Added hs.webview.toolbar.uniqueName() Aug 23, 2019
@latenitefilms latenitefilms changed the title [READY] Added hs.webview.toolbar.uniqueName() [READY] Added hs.webview.toolbar.uniqueName() Aug 23, 2019
Copy link
Member

@asmagill asmagill left a comment

Choose a reason for hiding this comment

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

Do we really need to create the toolbar? I was thinking something along the lines of lua_pushboolean(L, ![identifiersInUse containsObject:identifier]) should be sufficient.

This assumes that the only toolbars in the Hammerspoon application space are created by this module (identifiersInUse is only updated here)... I guess creating the toolbar and then letting ARC collect it is the definitive test...

Thoughts?

@latenitefilms
Copy link
Contributor Author

@asmagill - Very good point! Fixed!

@asmagill
Copy link
Member

lgtm

@cmsj cmsj merged commit 29f4a73 into Hammerspoon:master Aug 25, 2019
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.

Add hs.webview.toolbar.get?
3 participants