Skip to content

Commit

Permalink
#1391 Adjust to new proto file
Browse files Browse the repository at this point in the history
  • Loading branch information
helgoboss committed Jan 7, 2025
1 parent 387ccc5 commit 6afb56c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
3 changes: 0 additions & 3 deletions main/src/infrastructure/proto/ext.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,13 +254,11 @@ impl HelgoboxInstances {
FxChainContext::Track { track, is_input_fx } => {
let project = track.project();
let project_location = ProjectLocation {
path: project.file().map(|f| f.to_string()),
index: project.index().ok()?,
};
let track_location = TrackLocation {
project: Some(project_location),
id: track.guid().to_string_without_braces(),
index: track.index()?,
};
fx_chain_location::Location::TrackFx(TrackFxChainLocation {
track: Some(track_location),
Expand All @@ -276,7 +274,6 @@ impl HelgoboxInstances {
let fx_location = FxLocation {
fx_chain: Some(fx_chain_location),
id: fx.get_or_query_guid().ok()?.to_string_without_braces(),
index: fx.index(),
};
let helgobox_instance = HelgoboxInstance {
data: Some(data),
Expand Down
11 changes: 1 addition & 10 deletions main/src/infrastructure/proto/generated.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1578,9 +1578,6 @@ pub struct FxLocation {
/// Unique ID of the FX.
#[prost(string, tag = "2")]
pub id: ::prost::alloc::string::String,
/// Index of the FX within the containing FX chain.
#[prost(uint32, tag = "3")]
pub index: u32,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
Expand Down Expand Up @@ -1618,18 +1615,12 @@ pub struct TrackLocation {
/// Unique ID of the track.
#[prost(string, tag = "2")]
pub id: ::prost::alloc::string::String,
/// Index of the track within the containing project.
#[prost(uint32, tag = "3")]
pub index: u32,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProjectLocation {
/// Project path, if already saved.
#[prost(string, optional, tag = "1")]
pub path: ::core::option::Option<::prost::alloc::string::String>,
/// Index within the currently open project tabs.
#[prost(uint32, tag = "2")]
#[prost(uint32, tag = "1")]
pub index: u32,
}
#[allow(clippy::derive_partial_eq_without_eq)]
Expand Down

0 comments on commit 6afb56c

Please sign in to comment.