Add feature for legacy applications page
This commit is contained in:
parent
582a94ce06
commit
d27ee218cf
6 changed files with 14 additions and 1 deletions
|
|
@ -121,6 +121,7 @@ linux = [
|
|||
"page-default-apps",
|
||||
"page-display",
|
||||
"page-input",
|
||||
"page-legacy-applications",
|
||||
"page-networking",
|
||||
"page-power",
|
||||
"page-region",
|
||||
|
|
@ -155,6 +156,9 @@ page-input = [
|
|||
"dep:cosmic-settings-config",
|
||||
"dep:udev",
|
||||
]
|
||||
page-legacy-applications = [
|
||||
"dep:cosmic-comp-config",
|
||||
]
|
||||
page-networking = [
|
||||
"xdg-portal",
|
||||
"dep:cosmic-dbus-networkmanager",
|
||||
|
|
|
|||
|
|
@ -100,6 +100,7 @@ impl SettingsApp {
|
|||
PageCommands::Input => self.pages.page_id::<input::Page>(),
|
||||
#[cfg(feature = "page-input")]
|
||||
PageCommands::Keyboard => self.pages.page_id::<input::keyboard::Page>(),
|
||||
#[cfg(feature = "page-legacy-applications")]
|
||||
PageCommands::LegacyApplications => self
|
||||
.pages
|
||||
.page_id::<applications::legacy_applications::Page>(),
|
||||
|
|
@ -486,6 +487,7 @@ impl cosmic::Application for SettingsApp {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "page-legacy-applications")]
|
||||
crate::pages::Message::LegacyApplications(message) => {
|
||||
page::update!(self.pages, message, applications::legacy_applications::Page);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -77,6 +77,7 @@ pub enum PageCommands {
|
|||
#[cfg(feature = "page-input")]
|
||||
Keyboard,
|
||||
/// Legacy Applications settings page
|
||||
#[cfg(feature = "page-legacy-applications")]
|
||||
LegacyApplications,
|
||||
/// Mouse settings page
|
||||
#[cfg(feature = "page-input")]
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ pub mod default_apps;
|
|||
|
||||
pub mod startup_apps;
|
||||
|
||||
#[cfg(feature = "page-legacy-applications")]
|
||||
pub mod legacy_applications;
|
||||
|
||||
use cosmic_settings_page as page;
|
||||
|
|
@ -37,7 +38,10 @@ impl page::AutoBind<crate::pages::Message> for Page {
|
|||
|
||||
page = page.sub_page::<startup_apps::Page>();
|
||||
|
||||
page = page.sub_page::<legacy_applications::Page>();
|
||||
#[cfg(feature = "page-legacy-applications")]
|
||||
{
|
||||
page = page.sub_page::<legacy_applications::Page>();
|
||||
}
|
||||
|
||||
page
|
||||
}
|
||||
|
|
|
|||
|
|
@ -60,6 +60,7 @@ pub enum Message {
|
|||
Keyboard(input::keyboard::Message),
|
||||
#[cfg(feature = "page-input")]
|
||||
KeyboardShortcuts(input::keyboard::shortcuts::Message),
|
||||
#[cfg(feature = "page-legacy-applications")]
|
||||
LegacyApplications(applications::legacy_applications::Message),
|
||||
#[cfg(feature = "page-input")]
|
||||
ManageWindowShortcuts(input::keyboard::shortcuts::ShortcutMessage),
|
||||
|
|
|
|||
1
justfile
1
justfile
|
|
@ -178,6 +178,7 @@ check-features:
|
|||
"page-default-apps" \
|
||||
"page-display" \
|
||||
"page-input" \
|
||||
"page-legacy-applications" \
|
||||
"page-networking" \
|
||||
"page-power" \
|
||||
"page-region" \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue