Files
nixpkgs/pkgs/by-name/co/cosmic-initial-setup/disable-timezone-page.patch

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

65 lines
2.0 KiB
Diff
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
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::<page::location::Page>())
{
@@ -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::<page::user::Page>()) {
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<TypeId, Box<dyn Page>> {
pages.insert(TypeId::of::<user::Page>(), Box::new(user::Page::default()));
}
- pages.insert(
+ /* pages.insert(
TypeId::of::<location::Page>(),
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