diff --git a/src/main.rs b/src/main.rs index a0e8f2e..b6ff8dc 100644 --- a/src/main.rs +++ b/src/main.rs @@ -221,7 +221,7 @@ impl Application for App { } } - page::Message::Location(message) => { + /* page::Message::Location(message) => { if let Some(page) = self.pages.get_mut(&TypeId::of::()) { @@ -233,7 +233,7 @@ impl Application for App { .map(Message::PageMessage) .map(cosmic::Action::App); } - } + } */ page::Message::User(message) => { if let Some(page) = self.pages.get_mut(&TypeId::of::()) { diff --git a/src/page/mod.rs b/src/page/mod.rs index 389728c..38ced5e 100644 --- a/src/page/mod.rs +++ b/src/page/mod.rs @@ -7,7 +7,7 @@ pub mod keyboard; pub mod language; pub mod launcher; pub mod layout; -pub mod location; +// pub mod location; pub mod new_apps; pub mod new_shortcuts; pub mod user; @@ -48,10 +48,10 @@ pub fn pages(mode: AppMode) -> IndexMap> { pages.insert(TypeId::of::(), Box::new(user::Page::default())); } - pages.insert( + /* pages.insert( TypeId::of::(), Box::new(location::Page::new()), - ); + ); */ } pages.insert( @@ -97,7 +97,7 @@ pub enum Message { Keyboard(keyboard::Message), Language(language::Message), Layout(layout::Message), - Location(location::Message), + // Location(location::Message), SetTheme(cosmic::Theme), User(user::Message), Welcome(welcome::Message), @@ -150,4 +150,4 @@ pub trait Page { fn view(&self) -> Element<'_, Message> { widget::text::body("TODO").into() } -} +} \ No newline at end of file