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

PlayOnLinux Install Menu does not show all options in header bar #2562

Open
maarten256 opened this issue Jul 31, 2022 · 0 comments
Open

PlayOnLinux Install Menu does not show all options in header bar #2562

maarten256 opened this issue Jul 31, 2022 · 0 comments

Comments

@maarten256
Copy link

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

What I expect to see:
image

What I actually get:
image

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

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

No branches or pull requests

1 participant