Skip to content

fix: cast games_count to string in Gtk.Label to fix crash on startup#362

Open
danparidae wants to merge 1 commit intokra-mo:mainfrom
danparidae:patch-1
Open

fix: cast games_count to string in Gtk.Label to fix crash on startup#362
danparidae wants to merge 1 commit intokra-mo:mainfrom
danparidae:patch-1

Conversation

@danparidae
Copy link
Copy Markdown

This change fixes a TypeError that prevents the application from launching on systems with newer environments (like CachyOS/Arch running Python 3.14).

Strict type checking in recent PyGObject versions no longer automatically converts integers to strings for Gtk.Label. The application would fail to start with:
"TypeError: Must be string, not int"
during the source row creation.

This change fixes a TypeError that prevents the application from 
launching on systems with newer environments (like CachyOS/Arch 
running Python 3.14). 

Strict type checking in recent PyGObject versions no longer 
automatically converts integers to strings for Gtk.Label. 
The application would fail to start with: 
"TypeError: Must be string, not int" 
during the source row creation.
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.

1 participant