Skip to content

Commit aad0afc

Browse files
committed
Update libcosmic
1 parent 012f06e commit aad0afc

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/applet.rs

+2-5
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,7 @@ impl cosmic::Application for SysInfo {
6363

6464
const APP_ID: &'static str = "io.github.rwxroot.cosmic-ext-applet-sysinfo";
6565

66-
fn init(
67-
core: app::Core,
68-
_flags: Self::Flags,
69-
) -> (Self, cosmic::iced::Task<app::Message<Self::Message>>) {
66+
fn init(core: app::Core, _flags: Self::Flags) -> (Self, app::Task<Self::Message>) {
7067
let system = System::new_with_specifics(
7168
RefreshKind::nothing()
7269
.with_memory(MemoryRefreshKind::nothing().with_ram())
@@ -101,7 +98,7 @@ impl cosmic::Application for SysInfo {
10198
cosmic::iced::time::every(Duration::from_secs(1)).map(|_| Message::Tick)
10299
}
103100

104-
fn update(&mut self, message: Message) -> cosmic::iced::Task<app::Message<Self::Message>> {
101+
fn update(&mut self, message: Message) -> app::Task<Self::Message> {
105102
match message {
106103
Message::Tick => {
107104
self.update();

0 commit comments

Comments
 (0)