Skip to content

Commit

Permalink
performance
Browse files Browse the repository at this point in the history
  • Loading branch information
artemanufrij committed Apr 12, 2018
1 parent cf15a84 commit edc6550
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
8 changes: 8 additions & 0 deletions data/com.github.artemanufrij.findfileconflicts.appdata.xml.in
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,14 @@
</screenshot>
</screenshots>
<releases>
<release version="1.0.6" date="2018-04-15">
<description>
<p>Improved:</p>
<ul>
<li>Performance for high number of files</li>
</ul>
</description>
</release>
<release version="1.0.5" date="2018-04-02">
<description>
<p>New:</p>
Expand Down
8 changes: 4 additions & 4 deletions src/Dialogs/Preferences.vala
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,12 @@ namespace FindFileConflicts.Dialogs {
settings.use_rule_dots = use_rule_dots.active;
});

var use_rule_duplicates = new Gtk.Switch ();
/*var use_rule_duplicates = new Gtk.Switch ();
use_rule_duplicates.active = settings.use_rule_duplicates;
use_rule_duplicates.notify["active"].connect (
() => {
settings.use_rule_duplicates = use_rule_duplicates.active;
});
});*/

grid.attach (label_generator (_ ("Similar File Name")), 0, 0);
grid.attach (use_rule_similar, 1, 0);
Expand All @@ -134,8 +134,8 @@ namespace FindFileConflicts.Dialogs {
grid.attach (use_rule_chars, 1, 2);
grid.attach (label_generator (_ ("Double Dots")), 0, 3);
grid.attach (use_rule_dots, 1, 3);
grid.attach (label_generator (_ ("Check for Duplicates")), 0, 4);
grid.attach (use_rule_duplicates, 1, 4);
//grid.attach (label_generator (_ ("Check for Duplicates")), 0, 4);
//grid.attach (use_rule_duplicates, 1, 4);

return grid;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Services/LibraryManager.vala
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ namespace FindFileConflicts.Services {

l = files.length;
i = -1;
while (i < l - 1) {
while (i < (int)l - 1) {
i++;
var file1 = files.data [i];
if (file1.has_conflict) {
Expand Down

0 comments on commit edc6550

Please sign in to comment.