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

minimode: Progress and Playlist buttons show a popup and then immediately closes it #222

Closed
sjohannes opened this issue Jan 28, 2016 · 3 comments
Assignees
Milestone

Comments

@sjohannes
Copy link
Member

In 3.x and 4.x.

@sjohannes sjohannes self-assigned this Jan 28, 2016
@sjohannes sjohannes added this to the Exaile 4.0 milestone Jan 28, 2016
sjohannes added a commit that referenced this issue Jan 29, 2016
Previously the code attempts to hide the AttachedWindow when the focus goes
back to the parent window. However, the interaction is brittle and can
cause the AttachedWindow to be immediately hidden after being shown (see
the linked bug).

Rather than putting more effort towards making AttachedWindow behave like a
popup, this patch simplifies the code and removes the focus-related hiding
behavior, making it more like a normal window instead. AttachedWindow is
now using the standard behavior in the "transient-for" window relationship.

The only important thing that AttachedWindow still does is placing itself
correctly and following the parent's position.

Tested on Windows.

Partial work for #222
@sjohannes
Copy link
Member Author

The linked commits fix this, but also change how the Playlist window works. It now doesn't close automatically; you have to click on the toggle button again to close it.

@sazawal
Copy link

sazawal commented Jan 29, 2016

It did not work for me in Exaile 3.4.5. I just changed the two files /etc/lib/exaile/xlgui/widgets/common.py and /etc/share/exaile/plugins/minimode/controls.py with the files provided in fixes b1c7694 and a584180. After the fixes, Exaile fails to launch altogether. After just the fix a584180, plugin Minimode fails to load.

@sazawal
Copy link

sazawal commented Jan 29, 2016

I tweaked a bit with the changes you proposed in the fix a584180. It works perfectly and solves the issue for me when I just remove the lines 792 to 819 in /etc/share/exaile/plugins/minimode/controls.py as you have mentioned, without making any other changes.

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants