PlayOnLinux Install Menu does not show all options in header bar
Opened this issue · 0 comments
maarten256 commented
Expected behavior
When I select "Install" from the main window, I expect to see the various categories, "Accessories", "Development", ... but I only see the "Patches" icon, with the title "Patchesdia:nt".
Actual behavior
All installation categories are shown.
Steps to reproduce
Run playonlinux - either package version or from git.
Select "Install".
Observe Install Menu header.
System information
- software version (git revision) of phoenicis and scripts repositories
- playonlinux 4.3.4-2 (from Ubuntu Jammy repository)
- playonlinux 4.4.1 (from git repository)
- used operating system
- Ubuntu 22.04 Jammy
- used Java version
java version "1.8.0_341"
Java(TM) SE Runtime Environment (build 1.8.0_341-b10)
Java HotSpot(TM) 64-Bit Server VM (build 25.341-b10, mixed mode)
- Python 3.10.4
There is an "error" in InstallWindow.py, around line 54:
self.cats_links[name].SetPosition((round(espace * iid + (espace - mataille / 1.3) / 2), 47))
self.cats_icons[name].SetPosition((round(image_pos), offset))
The "X" coordinate in the position is passed in as a float, but should be an integer. I thought python would inherently convert float to int, but for me it doesn't. I added round() for the x-coordinates and then it works.
No idea if that would be a formal fix but it works for me.
Patch:
InstallWindow.txt