File tree 1 file changed +2
-5
lines changed
1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -63,10 +63,7 @@ impl cosmic::Application for SysInfo {
63
63
64
64
const APP_ID : & ' static str = "io.github.rwxroot.cosmic-ext-applet-sysinfo" ;
65
65
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 > ) {
70
67
let system = System :: new_with_specifics (
71
68
RefreshKind :: nothing ( )
72
69
. with_memory ( MemoryRefreshKind :: nothing ( ) . with_ram ( ) )
@@ -101,7 +98,7 @@ impl cosmic::Application for SysInfo {
101
98
cosmic:: iced:: time:: every ( Duration :: from_secs ( 1 ) ) . map ( |_| Message :: Tick )
102
99
}
103
100
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 > {
105
102
match message {
106
103
Message :: Tick => {
107
104
self . update ( ) ;
You can’t perform that action at this time.
0 commit comments