File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ export interface NavigationDataStatus {
9
9
installedFormat : string | null
10
10
installedRegion : string | null
11
11
installedCycle : string | null
12
+ installedPath : string | null
12
13
validityPeriod : string | null
13
14
lastestCycle : string | null
14
15
}
Original file line number Diff line number Diff line change @@ -29,6 +29,8 @@ pub struct NavigationDataStatus {
29
29
pub installed_revision : Option < String > ,
30
30
#[ serde( rename = "installedCycle" ) ]
31
31
pub installed_cycle : Option < String > ,
32
+ #[ serde( rename = "installedPath" ) ]
33
+ pub install_path : Option < String > ,
32
34
#[ serde( rename = "validityPeriod" ) ]
33
35
pub validity_period : Option < String > ,
34
36
#[ serde( rename = "latestCycle" ) ]
@@ -152,6 +154,11 @@ pub fn get_navigation_data_install_status(task: Rc<RefCell<Task>>) {
152
154
Some ( installed_cycle_info) => Some ( installed_cycle_info. cycle . clone ( ) ) ,
153
155
None => None ,
154
156
} ,
157
+ install_path : match status {
158
+ InstallStatus :: Manual => Some ( consts:: NAVIGATION_DATA_DOWNLOADED_LOCATION . to_string ( ) ) ,
159
+ InstallStatus :: Bundled => Some ( consts:: NAVIGATION_DATA_DEFAULT_LOCATION . to_string ( ) ) ,
160
+ InstallStatus :: None => None ,
161
+ } ,
155
162
validity_period : match & installed_cycle_info {
156
163
Some ( installed_cycle_info) => Some ( installed_cycle_info. validity_period . clone ( ) ) ,
157
164
None => None ,
You can’t perform that action at this time.
0 commit comments