mirror of https://github.com/wayvr-org/wayvr.git
dash-frontend: rename download_skymaps -> remote_skymap_list
This commit is contained in:
parent
68daa5b3df
commit
e5e798b599
|
|
@ -1,9 +1,9 @@
|
|||
pub mod app_launcher;
|
||||
pub mod audio_settings;
|
||||
pub mod download_skymaps;
|
||||
pub mod game_cover;
|
||||
pub mod game_launcher;
|
||||
pub mod game_list;
|
||||
pub mod remote_skymap_list;
|
||||
pub mod running_games_list;
|
||||
pub mod skymap_list;
|
||||
pub mod skymap_list_cell;
|
||||
|
|
|
|||
|
|
@ -95,7 +95,7 @@ impl View {
|
|||
) -> anyhow::Result<()> {
|
||||
let doc_params = &ParseDocumentParams {
|
||||
globals: self.globals.clone(),
|
||||
path: AssetPath::BuiltIn("gui/view/download_skymaps.xml"),
|
||||
path: AssetPath::BuiltIn("gui/view/remote_skymap_list.xml"),
|
||||
extra: Default::default(),
|
||||
};
|
||||
|
||||
|
|
@ -32,7 +32,7 @@ pub struct Params<'a> {
|
|||
}
|
||||
|
||||
pub struct State {
|
||||
popup_download_skymaps: Option<PopupHolder<views::download_skymaps::View>>,
|
||||
popup_remote_skymap_list: Option<PopupHolder<views::remote_skymap_list::View>>,
|
||||
}
|
||||
|
||||
pub struct View {
|
||||
|
|
@ -70,7 +70,7 @@ impl View {
|
|||
);
|
||||
|
||||
let state = Rc::new(RefCell::new(State {
|
||||
popup_download_skymaps: None,
|
||||
popup_remote_skymap_list: None,
|
||||
}));
|
||||
|
||||
Ok(Self {
|
||||
|
|
@ -86,7 +86,7 @@ impl View {
|
|||
pub fn update(&mut self, layout: &mut Layout, executor: &AsyncExecutor) -> anyhow::Result<()> {
|
||||
{
|
||||
let mut state = self.state.borrow_mut();
|
||||
if let Some(popup) = &mut state.popup_download_skymaps {
|
||||
if let Some(popup) = &mut state.popup_remote_skymap_list {
|
||||
popup.1.update(layout)?;
|
||||
}
|
||||
}
|
||||
|
|
@ -105,7 +105,7 @@ impl View {
|
|||
self.refresh(layout)?;
|
||||
}
|
||||
Task::ClosePopupDownloadSkymaps => {
|
||||
(*self.state.borrow_mut()).popup_download_skymaps = None;
|
||||
(*self.state.borrow_mut()).popup_remote_skymap_list = None;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -115,7 +115,7 @@ impl View {
|
|||
}
|
||||
|
||||
fn download_skymaps(&mut self, executor: &AsyncExecutor) -> anyhow::Result<()> {
|
||||
views::download_skymaps::mount_popup(
|
||||
views::remote_skymap_list::mount_popup(
|
||||
self.frontend_tasks.clone(),
|
||||
executor.clone(),
|
||||
self.globals.clone(),
|
||||
|
|
@ -123,7 +123,7 @@ impl View {
|
|||
Box::new({
|
||||
let state = self.state.clone();
|
||||
move |popup| {
|
||||
state.borrow_mut().popup_download_skymaps = Some(popup);
|
||||
state.borrow_mut().popup_remote_skymap_list = Some(popup);
|
||||
}
|
||||
}),
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in New Issue