unsafe fn delete_selected_tip(&self) {
        let tip = self.get_tip_from_selection();

        let receiver = CENTRAL_COMMAND.send_background(Command::DeleteTipById(*tip.get_ref_id()));
        let response = CentralCommand::recv(&receiver);
        match response {
            Response::Success => {},
            Response::Error(error) => show_dialog(&self.list, error, false),
            _ => panic!("{}{:?}", THREADS_COMMUNICATION_ERROR, response),
        };

        let indexes = self.filter.map_selection_to_source(&self.list.selection_model().selection()).indexes();
        self.model.remove_row_1a(indexes.at(0).row());
    }
/// This function deletes a tip from both, the ui and the backend.
This function deletes a tip from both, the ui and the backend.
This function deletes a tip from both the ui and the backend .
unsafe fn delete_selected_tip(&self) {
        let tip = self.get_tip_from_selection();
        let receiver = CENTRAL_COMMAND.send_background(Command::DeleteTipById(*tip.get_ref_id()));
        let response = CentralCommand::recv(&receiver);
        match response {
            Response::Success => {},
            Response::Error(error) => show_dialog(&self.list, error, false),
            _ => panic!("{}{:?}", THREADS_COMMUNICATION_ERROR, response),
        };
        let indexes = self.filter.map_selection_to_source(&self.list.selection_model().selection()).indexes();
        self.model.remove_row_1a(indexes.at(0).row());
    }
unsafe fn delete_selected_tip ( & self ) { let tip = self . get_tip_from_selection ( ) ; let receiver = CENTRAL_COMMAND . send_background ( Command :: DeleteTipById ( * tip . get_ref_id ( ) ) ) ; let response = CentralCommand :: recv ( & receiver ) ; match response { Response :: Success => { } , Response :: Error ( error ) => show_dialog ( & self . list , error , false ) , _ => panic ! ( " " THREADS_COMMUNICATION_ERROR response ) , } ; let indexes = self . filter . map_selection_to_source ( & self . list . selection_model ( ) . selection ( ) ) . indexes ( ) ; self . model . remove_row_1a ( indexes . at ( 0 ) . row ( ) ) ; }
This function deletes a tip from both, the ui and the backend.
This function deletes a tip from both the ui and the backend .
&self
&self