Power: Rename app state from Audio to Power
This commit is contained in:
parent
3ae4eb635a
commit
813e6c0aff
1 changed files with 5 additions and 5 deletions
|
|
@ -35,11 +35,11 @@ use crate::session_manager::SessionManagerProxy;
|
||||||
|
|
||||||
pub fn main() -> cosmic::iced::Result {
|
pub fn main() -> cosmic::iced::Result {
|
||||||
let helper = CosmicAppletHelper::default();
|
let helper = CosmicAppletHelper::default();
|
||||||
Audio::run(helper.window_settings())
|
Power::run(helper.window_settings())
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Default)]
|
#[derive(Default)]
|
||||||
struct Audio {
|
struct Power {
|
||||||
applet_helper: CosmicAppletHelper,
|
applet_helper: CosmicAppletHelper,
|
||||||
icon_name: String,
|
icon_name: String,
|
||||||
theme: Theme,
|
theme: Theme,
|
||||||
|
|
@ -60,15 +60,15 @@ enum Message {
|
||||||
Zbus(Result<(), zbus::Error>),
|
Zbus(Result<(), zbus::Error>),
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Application for Audio {
|
impl Application for Power {
|
||||||
type Message = Message;
|
type Message = Message;
|
||||||
type Theme = Theme;
|
type Theme = Theme;
|
||||||
type Executor = executor::Default;
|
type Executor = executor::Default;
|
||||||
type Flags = ();
|
type Flags = ();
|
||||||
|
|
||||||
fn new(_flags: ()) -> (Audio, Command<Message>) {
|
fn new(_flags: ()) -> (Power, Command<Message>) {
|
||||||
(
|
(
|
||||||
Audio {
|
Power {
|
||||||
icon_name: "system-shutdown-symbolic".to_string(),
|
icon_name: "system-shutdown-symbolic".to_string(),
|
||||||
..Default::default()
|
..Default::default()
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue