glenreesor / HammerBar

A Windows-Like Taskbar for MacOS
14 stars 3 forks source link

Minimized on click #1

Closed gilcu2 closed 5 months ago

gilcu2 commented 8 months ago

Hi, in v0.9. when I click the app button it gets minimize, so I always need to click 2 times. How can I solve it? Also, how can I run the dev version? Thanks Reynaldo

glenreesor commented 8 months ago

It sounds like your app is not minimized, but covered by another window, and you want to click the app button to focus that window. The way that HammerBar currently works is to just toggle between minimized and not minimized when the app button is clicked, which I think is the behavior that you're seeing.

If you want to focus an app that isn't minimized, you can Command-click (or Control-click) on the button. That will focus it without minimizing it.

Does that help?

glenreesor commented 8 months ago

I missed your second question about how to run the dev version :smile: . HammerBar is written in typescript and gets transpiled to Lua using TypeScriptToLua . You can build that by cloning this repo, installing npm, running npm install, and then running npm build. The transpiled lua will be in the build/ directory.

Unfortunately the dev version has a slightly different interface that isn't documented yet, and requires hard-coding in init.ts. I'm hoping to get a prerelease ready soon though!