@@ -126,22 +126,22 @@ def __init__(self, parent=None, appicon=None):
126126 self .allowButton .setIcon (self .allowIcon )
127127 self ._allow_text = QC .translate ("popups" , "Allow" )
128128 self ._action_text = [
129- QC .translate ("popups" , "Deny " ),
129+ QC .translate ("popups" , "Drop " ),
130130 QC .translate ("popups" , "Allow" ),
131131 QC .translate ("popups" , "Reject" )
132132 ]
133133 self ._action_icon = [denyIcon , self .allowIcon , rejectIcon ]
134134
135135 m = QtWidgets .QMenu ()
136- m .addAction (denyIcon , self ._action_text [Config .ACTION_DENY_IDX ]).triggered .connect (
137- lambda : self ._on_action_clicked (Config .ACTION_DENY_IDX )
136+ m .addAction (denyIcon , self ._action_text [Config .ACTION_DROP_IDX ]).triggered .connect (
137+ lambda : self ._on_action_clicked (Config .ACTION_DROP_IDX )
138138 )
139139 m .addAction (rejectIcon , self ._action_text [Config .ACTION_REJECT_IDX ]).triggered .connect (
140140 lambda : self ._on_action_clicked (Config .ACTION_REJECT_IDX )
141141 )
142142 self .actionButton .setMenu (m )
143- self .actionButton .setText (self ._action_text [Config .ACTION_DENY_IDX ])
144- self .actionButton .setIcon (self ._action_icon [Config .ACTION_DENY_IDX ])
143+ self .actionButton .setText (self ._action_text [Config .ACTION_DROP_IDX ])
144+ self .actionButton .setIcon (self ._action_icon [Config .ACTION_DROP_IDX ])
145145 if self ._default_action != Config .ACTION_ALLOW_IDX :
146146 self .actionButton .setText (self ._action_text [self ._default_action ])
147147 self .actionButton .setIcon (self ._action_icon [self ._default_action ])
@@ -431,7 +431,7 @@ def _set_cmd_action_text(self):
431431 if action_idx == Config .ACTION_ALLOW_IDX :
432432 self .allowButton .setText ("{0} ({1})" .format (self ._allow_text , self ._tick ))
433433 self .allowButton .setIcon (self .allowIcon )
434- self .actionButton .setText (self ._action_text [Config .ACTION_DENY_IDX ])
434+ self .actionButton .setText (self ._action_text [Config .ACTION_DROP_IDX ])
435435 else :
436436 self .allowButton .setText (self ._allow_text )
437437 self .actionButton .setText ("{0} ({1})" .format (self ._action_text [action_idx ], self ._tick ))
@@ -604,7 +604,7 @@ def _on_action_clicked(self, action):
604604 def _on_deny_btn_clicked (self , action ):
605605 self ._default_action = self ._cfg .getInt (self ._cfg .DEFAULT_ACTION_KEY )
606606 if self ._default_action == Config .ACTION_ALLOW_IDX :
607- self ._default_action = Config .ACTION_DENY_IDX
607+ self ._default_action = Config .ACTION_DROP_IDX
608608 self ._send_rule ()
609609
610610 def _is_list_rule (self ):
@@ -622,7 +622,8 @@ def _send_rule(self):
622622 self ._rule .duration = utils .get_duration (self .durationCombo .currentIndex ())
623623
624624 self ._rule .action = Config .ACTION_ALLOW
625- if self ._default_action == Config .ACTION_DENY_IDX :
625+ if self ._default_action == Config .ACTION_DROP_IDX :
626+ # TODO: use ACTION_DROP when 'drop' is added to the daemon
626627 self ._rule .action = Config .ACTION_DENY
627628 elif self ._default_action == Config .ACTION_REJECT_IDX :
628629 self ._rule .action = Config .ACTION_REJECT
0 commit comments