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

fix: updated getoption logic for Hyprland v0.36 #203

Merged
merged 3 commits into from
Apr 5, 2024

Conversation

JarKz
Copy link
Contributor

@JarKz JarKz commented Apr 4, 2024

The new Hyprland version (at this moment - 0.36) have changed the getoption command, where value can be either a str, an int or a float. So with old logic the Serde expects an int or a float (firstly integer), but there it doesn't exists.

I marked these values as Option<T> and changed logic in parsing keyword.

I'm not sure about edge cases, so I'm open to another opinions.

Fixes issue #184 .

src/keyword.rs Outdated Show resolved Hide resolved
@JarKz
Copy link
Contributor Author

JarKz commented Apr 5, 2024

Also, I added simple tests for check this. Add they to repo or not?

@JarKz JarKz requested a review from yavko April 5, 2024 06:58
@yavko yavko merged commit 7a60845 into hyprland-community:master Apr 5, 2024
3 checks passed
@yavko
Copy link
Member

yavko commented Apr 5, 2024

Also, I added simple tests for check this. Add they to repo or not?

make new pr

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.

2 participants