[Easytag-mailing] Disable files list refresh when saving changes



EasyTAG works very slow when is saving changes in many files (>100). Disabling 
refresh of files list  will speed up this process (see patch).
*** a/src/easytag.c	2012-01-14 00:27:22.000000000 +0100
--- b/src/easytag.c	2012-05-22 19:18:10.826856863 +0200
***************
*** 2275,2281 ****
          if ( force_saving_files
          || FileTag->saved == FALSE || FileNameNew->saved == FALSE )
          {
!             ET_Display_File_Data_To_UI((ET_File *)etfilelist_tmp->data);
              // Use of 'currentPath' to try to increase speed. Indeed, in many
              // cases, the next file to select, is the next in the list
              currentPath = Browser_List_Select_File_By_Etfile2((ET_File *)etfilelist_tmp->data,FALSE,currentPath);
--- 2275,2281 ----
          if ( force_saving_files
          || FileTag->saved == FALSE || FileNameNew->saved == FALSE )
          {
!             // ET_Display_File_Data_To_UI((ET_File *)etfilelist_tmp->data);
              // Use of 'currentPath' to try to increase speed. Indeed, in many
              // cases, the next file to select, is the next in the list
              currentPath = Browser_List_Select_File_By_Etfile2((ET_File *)etfilelist_tmp->data,FALSE,currentPath);
***************
*** 2348,2354 ****
      gtk_progress_bar_set_fraction(GTK_PROGRESS_BAR(ProgressBar), 0);
      Statusbar_Message(msg,TRUE);
      g_free(msg);
! 
      return TRUE;
  }
  
--- 2348,2354 ----
      gtk_progress_bar_set_fraction(GTK_PROGRESS_BAR(ProgressBar), 0);
      Statusbar_Message(msg,TRUE);
      g_free(msg);
!     Browser_List_Refresh_Whole_List();
      return TRUE;
  }
  
***************
*** 2581,2587 ****
  
          if (CONFIRM_WRITE_TAG && !SF_HideMsgbox_Write_Tag)
          {
!             ET_Display_File_Data_To_UI(ETFile);
  
              msg = g_strdup_printf(_("Do you want to write the tag of file\n'%s' ?"),basename_cur_utf8);
  
--- 2581,2587 ----
  
          if (CONFIRM_WRITE_TAG && !SF_HideMsgbox_Write_Tag)
          {
!             // ET_Display_File_Data_To_UI(ETFile);
  
              msg = g_strdup_printf(_("Do you want to write the tag of file\n'%s' ?"),basename_cur_utf8);
  
***************
*** 2664,2670 ****
  
          if (CONFIRM_RENAME_FILE && !SF_HideMsgbox_Rename_File)
          {
!             ET_Display_File_Data_To_UI(ETFile);
  
              dirname_cur_utf8 = g_path_get_dirname(filename_cur_utf8);
              dirname_new_utf8 = g_path_get_dirname(filename_new_utf8);
--- 2664,2670 ----
  
          if (CONFIRM_RENAME_FILE && !SF_HideMsgbox_Rename_File)
          {
!             // ET_Display_File_Data_To_UI(ETFile);
  
              dirname_cur_utf8 = g_path_get_dirname(filename_cur_utf8);
              dirname_new_utf8 = g_path_get_dirname(filename_new_utf8);
***************
*** 2766,2772 ****
      g_free(basename_new_utf8);
  
      /* Refresh file into browser list */
!     Browser_List_Refresh_File_In_List(ETFile);
  
      return 1;
  }
--- 2766,2772 ----
      g_free(basename_new_utf8);
  
      /* Refresh file into browser list */
!     // Browser_List_Refresh_File_In_List(ETFile);
  
      return 1;
  }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]