Skip to content

Commit

Permalink
ui/global: Correctly check remote version for link permission
Browse files Browse the repository at this point in the history
PipeWire reached 1.0.0
  • Loading branch information
dimtpap committed Dec 10, 2023
1 parent 7915240 commit f99b100
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui/global.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ fn draw_permissions(ui: &mut egui::Ui, p: &mut Permissions) {
for (permission, label) in PERMISSIONS
.get_or_init(|| {
#[cfg(feature = "pw_v0_3_77")]
if crate::backend::remote_version().is_some_and(|ver| ver.2 >= 77) {
if crate::backend::remote_version().is_some_and(|ver| ver.0 > 0 || ver.2 >= 77) {
return [
(Permission::R, "Read"),
(Permission::W, "Write"),
Expand Down

0 comments on commit f99b100

Please sign in to comment.