pub unsafe fn post_process_edition(&self, app_ui: &Rc<AppUI>, pack_file_contents_ui: &Rc<PackFileContentsUI>) {
        update_undo_model(&self.get_mut_ptr_table_model(), &self.get_mut_ptr_undo_model());
        self.context_menu_update();
        if let Some(ref packed_file_path) = self.packed_file_path {
            TableSearch::update_search(self);
            if let DataSource::PackFile = *self.data_source.read().unwrap() {
                set_modified(true, &packed_file_path.read().unwrap(), app_ui, pack_file_contents_ui);
            }
        }

        if SETTINGS.read().unwrap().settings_bool["table_resize_on_edit"] {
            self.table_view_primary.horizontal_header().resize_sections(ResizeMode::ResizeToContents);
        }

        // Re-sort and re-filter the table, as it's not automatically done.
        self.table_filter.set_dynamic_sort_filter(false);
        self.table_filter.set_dynamic_sort_filter(true);

        self.table_filter.invalidate();
        self.filter_table();

        self.table_view_primary.viewport().repaint();
    }
/// Triggers stuff that should be done once after a bunch of editions.
Triggers stuff that should be done once after a bunch of editions.
Triggers stuff that should be done once after a bunch of editions .
pub unsafe fn post_process_edition(&self, app_ui: &Rc<AppUI>, pack_file_contents_ui: &Rc<PackFileContentsUI>) {
        update_undo_model(&self.get_mut_ptr_table_model(), &self.get_mut_ptr_undo_model());
        self.context_menu_update();
        if let Some(ref packed_file_path) = self.packed_file_path {
            TableSearch::update_search(self);
            if let DataSource::PackFile = *self.data_source.read().unwrap() {
                set_modified(true, &packed_file_path.read().unwrap(), app_ui, pack_file_contents_ui);
            }
        }
        if SETTINGS.read().unwrap().settings_bool["table_resize_on_edit"] {
            self.table_view_primary.horizontal_header().resize_sections(ResizeMode::ResizeToContents);
        }
        // Re-sort and re-filter the table, as it's not automatically done.
        self.table_filter.set_dynamic_sort_filter(false);
        self.table_filter.set_dynamic_sort_filter(true);
        self.table_filter.invalidate();
        self.filter_table();
        self.table_view_primary.viewport().repaint();
    }
pub unsafe fn post_process_edition ( & self , app_ui : & Rc < AppUI > , pack_file_contents_ui : & Rc < PackFileContentsUI > ) { update_undo_model ( & self . get_mut_ptr_table_model ( ) , & self . get_mut_ptr_undo_model ( ) ) ; self . context_menu_update ( ) ; if let Some ( ref packed_file_path ) = self . packed_file_path { TableSearch :: update_search ( self ) ; if let DataSource :: PackFile = * self . data_source . read ( ) . unwrap ( ) { set_modified ( true , & packed_file_path . read ( ) . unwrap ( ) , app_ui , pack_file_contents_ui ) ; } } if SETTINGS . read ( ) . unwrap ( ) . settings_bool [ " " ] { self . table_view_primary . horizontal_header ( ) . resize_sections ( ResizeMode :: ResizeToContents ) ; } // Re-sort and re-filter the table, as it's not automatically done. self . table_filter . set_dynamic_sort_filter ( false ) ; self . table_filter . set_dynamic_sort_filter ( true ) ; self . table_filter . invalidate ( ) ; self . filter_table ( ) ; self . table_view_primary . viewport ( ) . repaint ( ) ; }
Triggers stuff that should be done once after a bunch of editions.
Triggers stuff that should be done once after a bunch of editions .
&self
app_ui
&Rc<AppUI>
pack_file_contents_ui
&Rc<PackFileContentsUI>
&self
app_ui
&Rc<AppUI>
pack_file_contents_ui
&Rc<PackFileContentsUI>