Skip to content

Commit

Permalink
squash! Revert "Fix the bug: show empty msg"
Browse files Browse the repository at this point in the history
Log empty msg only
  • Loading branch information
JohanChane committed Aug 12, 2024
1 parent 3922021 commit e8463c2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions clashtui/src/tui/tabs/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ macro_rules! msgpopup_methods {
if ! msg.is_empty() {
self.msgpopup.push_txt_msg(msg);
self.msgpopup.show();
} else {
log::debug!("from tui: txt msg is empty!");
}
}
// multi-lines popup
Expand All @@ -60,6 +62,8 @@ macro_rules! msgpopup_methods {
if list_msg.len() > 0 {
self.msgpopup.push_list_msg(list_msg);
self.msgpopup.show();
} else {
log::debug!("from tui: list msg is empty!");
}
}
#[allow(unused)]
Expand Down

0 comments on commit e8463c2

Please sign in to comment.