Skip to content

Commit

Permalink
Rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
casperstorm committed Sep 20, 2024
1 parent a964dc8 commit f51c956
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions data/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ pub use self::notification::Notifications;
pub use self::proxy::Proxy;
pub use self::server::Server;
pub use self::sidebar::Sidebar;

use crate::appearance::{self, Appearance};
use crate::audio::{self, Sound};
use crate::environment::config_dir;
Expand Down
10 changes: 5 additions & 5 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ pub enum Screen {

#[derive(Debug)]
pub enum Message {
ThemesReloaded(config::Themes),
AppearanceReloaded(data::appearance::Appearance),
ScreenConfigReloaded(Result<Config, config::Error>),
Dashboard(dashboard::Message),
Stream(stream::Update),
Expand Down Expand Up @@ -281,8 +281,8 @@ impl Halloy {

fn update(&mut self, message: Message) -> Task<Message> {
match message {
Message::ThemesReloaded(updated) => {
self.config.themes = updated;
Message::AppearanceReloaded(appearance) => {
self.config.appearance = appearance;
Task::none()
}
Message::ScreenConfigReloaded(updated) => {
Expand Down Expand Up @@ -333,8 +333,8 @@ impl Halloy {
Task::none()
}
Some(dashboard::Event::ReloadThemes) => Task::future(Config::load())
.and_then(|config| Task::done(config.themes))
.map(Message::ThemesReloaded),
.and_then(|config| Task::done(config.appearance))
.map(Message::AppearanceReloaded),
Some(dashboard::Event::QuitServer(server)) => {
self.clients.quit(&server, None);
Task::none()
Expand Down

0 comments on commit f51c956

Please sign in to comment.