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

apt-widget icon-control #437

Merged
merged 1 commit into from May 18, 2024

Conversation

radiodee1
Copy link
Contributor

@radiodee1 radiodee1 commented Jan 16, 2024

Hi. I am proposing a change in the apt-widget.lua code. As it is now the popup menu disappears when the pointer moves out of the popup area. If you wanted, for example, to complete some updates and watch the list shrink, you would have to hover over the popup. The moment your cursor leaves the popup area, it closes. I've added a variable called 'icon_control'. This variable can be set in the 'rc.lua' file as part of apt-widget. When set the popup does not close when you leave it with your mouse. The popup does close when the user clicks again on the icon. This is similar to the way that the file-system widget works. Of course if you leave it out of your config, the widget should still work. I was going to call the variable 'auto_close' but this would imply that the variable needed to be set for the old behavior to work, and I want it so that the old behavior is associated with no extra setting whatsoever. If this change is made, the readme file might need to be added to. This is a sort of feature request.

@streetturtle
Copy link
Owner

Cool! It might be useful! Thanks!

@streetturtle streetturtle merged commit 5e3cbf9 into streetturtle:master May 18, 2024
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.

None yet

2 participants