File tree 2 files changed +3
-9
lines changed
2 files changed +3
-9
lines changed Original file line number Diff line number Diff line change 1
- use log:: error;
2
1
use oryx_common:: RawPacket ;
3
2
use ratatui:: {
4
3
layout:: { Constraint , Direction , Layout } ,
@@ -130,15 +129,10 @@ impl App {
130
129
pub fn tick ( & mut self ) {
131
130
self . notifications . iter_mut ( ) . for_each ( |n| n. ttl -= 1 ) ;
132
131
self . notifications . retain ( |n| n. ttl > 0 ) ;
133
-
134
132
self . section . alert . check ( ) ;
135
133
}
136
134
137
135
pub fn quit ( & mut self ) {
138
- if let Err ( e) = self . section . firewall . save_rules ( ) {
139
- error ! ( "{}" , e)
140
- }
141
-
142
136
self . running = false ;
143
137
}
144
138
}
Original file line number Diff line number Diff line change @@ -557,18 +557,18 @@ impl Firewall {
557
557
KeyCode :: Char ( 's' ) => match self . save_rules ( ) {
558
558
Ok ( _) => {
559
559
Notification :: send (
560
- "Firewall rules saved to ~/oryx/firewall.json file " ,
560
+ "Sync firewall rules to ~/oryx/firewall.json" ,
561
561
crate :: notification:: NotificationLevel :: Info ,
562
562
sender. clone ( ) ,
563
563
) ?;
564
564
}
565
565
Err ( e) => {
566
566
Notification :: send (
567
- "Error while saving firewall rules. " ,
567
+ "Error while syncing firewall rules" ,
568
568
crate :: notification:: NotificationLevel :: Error ,
569
569
sender. clone ( ) ,
570
570
) ?;
571
- error ! ( "Error while saving firewall rules. {}" , e) ;
571
+ error ! ( "Error while syncing firewall rules. {}" , e) ;
572
572
}
573
573
} ,
574
574
You can’t perform that action at this time.
0 commit comments