Skip to content

Commit

Permalink
feat(stremio-core-protobuf): bump core and add Profile's Settings.ser…
Browse files Browse the repository at this point in the history
…ver_in_foreground & Settings.server_in_foreground

Signed-off-by: Lachezar Lechev <[email protected]>
  • Loading branch information
elpiel committed Dec 6, 2024
1 parent 3bf77f8 commit 01087e7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions stremio-core-protobuf/proto/stremio/core/types/profile.proto
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ message Profile {
required FrameRateMatchingStrategy frame_rate_matching_strategy = 26;
required int64 next_video_notification_duration = 27;
required bool surround_sound = 28;
required bool send_crash_reports = 29;
required bool server_in_foreground = 30;
}

enum FrameRateMatchingStrategy {
Expand Down
4 changes: 4 additions & 0 deletions stremio-core-protobuf/src/bridge/profile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ impl FromProtobuf<Settings> for types::profile::Settings {
pause_on_minimize: self.pause_on_minimize,
surround_sound: self.surround_sound,
streaming_server_warning_dismissed: None,
server_in_foreground: self.server_in_foreground,
send_crash_reports: self.send_crash_reports,
}
}
}
Expand Down Expand Up @@ -195,6 +197,8 @@ impl ToProtobuf<types::profile::Settings, ()> for Settings {
as i32,
next_video_notification_duration: self.next_video_notification_duration as i64,
surround_sound: self.surround_sound,
server_in_foreground: self.server_in_foreground,
send_crash_reports: self.send_crash_reports,
}
}
}
Expand Down

0 comments on commit 01087e7

Please sign in to comment.