-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
MixxxMainWindow: Hide menubar during startup #3839
Conversation
Right now, the style of the menu bar changes during startup. This doesn't look nice. This commit simply hides the menubar during that period.
why wait so long, until after rescanning the library and optionally loading tracks passed by args? When I was trying to get Mixxx into a state where the GUI is not available and the menubar may be needed (Shade configured, skin.xml broken), I discovered an issue with loadDefaultSkin: Mixxx wouldn't look for or wouldn't find LateNight, and show a warning > Okay > close. apart from that it works fine and I can't see what could go wrong. related: |
How much work would it be to style the menu bar in the startup screen? Is it just a matter of copy and paste? |
Looks like we'd either have to split out the menubar styles and parse them separately like the launch screen. Or do some other magic with the stylesheet of the configured skin and extract the menubar styles. This solution here is perfect IMO, we have a clean launch screen now. |
@ronso0 Added the first commit (don't know if the second one is related to this PR). Ready to merge? |
Looking good. All keyboard shortcuts still work (IIRC had issues with this in related PRs) I wanted to give this a shot on Windows10 but all the Zip artifacts containing the msi are currently broken.. Also, I'm curious what happens on macOS (if anything..) |
@ronso0 what do you mean with the zip artifacts are broken? Is the msi file invalid? Can't the zip files be extracted? |
aah, you caught me... Will open a separate PR for this. |
I just tried teh MSI artifact from this PR and it works as intended on Win7 ! |
the contained msi is 0 bytes. tried with artifacts from multiple PRs, all the same. ronso@ropad580:~/Desktop$ unzip mixxx_hide-menubar.zip
Archive: mixxx_hide-menubar.zip
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip: cannot find zipfile directory in one of mixxx_hide-menubar.zip or
mixxx_hide-menubar.zip.zip, and cannot find mixxx_hide-menubar.zip.ZIP, period.
ronso@ropad580:~/Desktop$ zip -FF mixxx_hide-menubar.zip -O mixxx_hide-menubar.fixed.zip
Fix archive (-FF) - salvage what can
zip warning: Missing end (EOCDR) signature - either this archive
is not readable or the end is damaged
Is this a single-disk archive? (y/n): y
Assuming single-disk archive
Scanning for entries...
copying: mixxx-2.3-beta-3898-g7670b8ad01.msi
zip warning: no end of stream entry found: mixxx-2.3-beta-3898-g7670b8ad01.msi
zip warning: rewinding and scanning for later entries
zip warning: zip file empty
ronso@ropad580:~/Desktop$ ls -l mixxx_hide-menubar.zip
-rw-rw-r-- 1 ronso ronso 59834360 Mai 7 21:54 mixxx_hide-menubar.zip |
@ronso0 I cannot reproduce:
And if the ZIP was broken, there's nothing we can do about it, because it's zipped automatically by GitHub, not our CI. |
now it works. looks like I got broken dwonloads repeatedly, dunno why. |
@JoergAtGithub |
I just checked this and I found out, that the keyboard shortcuts of the View menu only work, if the menu is not shown. For the other menus this works. |
you mean: have the menu open AND press any of the shown key combos? why? : ) |
If the menu is not shown? Weird. |
Can confirm, only F11 works with the menu open. same in 2.3 |
OK, so this PR doesn't need further changes? |
Ok |
Tested Artifact Build and did not run into problems. |
so all buttons and shortcuts work? I'll test the global menu with xfce and gnome tonight. |
Not sure about all but I tried shortcuts from menubar and a few I frequently use as well as the buttons in UI. One odd behavior I noticed is that a single click on increasing beatloop size triggers multiple steps. so while on 4 I suddenly have 256 beats :/ Probably unrelated to this PR and not 100% reproducible. Rather related to known laggyness issues with mixxx ui on macOS leading to all sorts of strange behavior while being hard to reproduce and inconsistent. Currently in a state. Right now had a situation where clicks where not registered (or resulting in instant responce) and after a few seconds were all executed at once resulting in a 1/16 loop. Nice if you are playing an experimental set. Not nice if you want to keep a more mainstream set flowing. |
Thanks, I was referrign to menubar buttons and their keyboard shortcuts. For the other unrelated issues, please file bug report(s) so we remember them. |
I can confirm this is working with Ubuntu Unity and Gnome on Focal and Bionic. |
perfecto! Thanks @Holzhaus |
Right now, the style of the menu bar changes during startup. This
doesn't look nice. This commit simply hides the menubar during that
period.