cleanup: remove notifications page

This commit is contained in:
Ashley Wulber 2024-05-08 22:05:21 -04:00 committed by Michael Murphy
parent 48a6ec042f
commit 7c4bd78174
5 changed files with 5 additions and 37 deletions

10
Cargo.lock generated
View file

@ -1257,7 +1257,7 @@ dependencies = [
[[package]]
name = "cosmic-panel-config"
version = "0.1.0"
source = "git+https://github.com/pop-os/cosmic-panel#8c4d94591f552d4044e917be9b5ab90ddb572643"
source = "git+https://github.com/pop-os/cosmic-panel#5b83d226d5d726a4cbcc20b6b36f76e76c51c0bf"
dependencies = [
"anyhow",
"cosmic-config",
@ -1849,9 +1849,9 @@ checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5"
[[package]]
name = "errno"
version = "0.3.8"
version = "0.3.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a258e46cdc063eb8519c00b9fc845fc47bcfca4130e2f08e88665ceda8474245"
checksum = "534c5cf6194dfab3db3242765c03bbe257cf92f22b38f6bc0c58d59108a820ba"
dependencies = [
"libc",
"windows-sys 0.52.0",
@ -3936,9 +3936,9 @@ dependencies = [
[[package]]
name = "num"
version = "0.4.2"
version = "0.4.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3135b08af27d103b0a51f2ae0f8632117b7b185ccf931445affa8df530576a41"
checksum = "35bd024e8b2ff75562e5f34e7f4905839deb4b22955ef5e73d2fea1b9813cb23"
dependencies = [
"num-bigint",
"num-complex",

View file

@ -21,7 +21,6 @@ use cosmic::iced::Subscription;
use cosmic::widget::{button, row, text_input};
use cosmic::{
app::{Command, Core},
cosmic_config::{config_state_subscription, config_subscription},
iced::{
self,
event::{self, wayland, PlatformSpecific},
@ -64,7 +63,6 @@ impl SettingsApp {
PageCommands::Keyboard => self.pages.page_id::<input::keyboard::Page>(),
PageCommands::Mouse => self.pages.page_id::<input::mouse::Page>(),
PageCommands::Network => None,
PageCommands::Notifications => self.pages.page_id::<desktop::notifications::Page>(),
PageCommands::Power => None,
PageCommands::RegionLanguage => self.pages.page_id::<time::region::Page>(),
PageCommands::Sound => self.pages.page_id::<sound::Page>(),

View file

@ -57,8 +57,6 @@ pub enum PageCommands {
Mouse,
/// Network settings page
Network,
/// Notifications settings page
Notifications,
/// Power settings page
Power,
/// Region & Language settings page

View file

@ -3,7 +3,6 @@
pub mod appearance;
pub mod dock;
pub mod notifications;
pub mod options;
pub mod panel;
pub mod wallpaper;
@ -51,7 +50,6 @@ impl page::AutoBind<crate::pages::Message> for Page {
.sub_page::<wallpaper::Page>()
.sub_page::<appearance::Page>()
.sub_page::<workspaces::Page>()
.sub_page::<notifications::Page>()
}
}

View file

@ -1,26 +0,0 @@
// Copyright 2023 System76 <info@system76.com>
// SPDX-License-Identifier: GPL-3.0-only
use cosmic_settings_page::Section;
use cosmic_settings_page::{self as page, section};
use slotmap::SlotMap;
#[derive(Default)]
pub struct Page;
impl page::Page<crate::pages::Message> for Page {
fn content(
&self,
sections: &mut SlotMap<section::Entity, Section<crate::pages::Message>>,
) -> Option<page::Content> {
Some(vec![sections.insert(Section::default())])
}
fn info(&self) -> page::Info {
page::Info::new("notifications", "preferences-system-notifications-symbolic")
.title(fl!("notifications"))
.description(fl!("notifications", "desc"))
}
}
impl page::AutoBind<crate::pages::Message> for Page {}