Skip to content
This repository has been archived by the owner on Jan 31, 2023. It is now read-only.

Commit

Permalink
Fix loading every second account information isntead of every first
Browse files Browse the repository at this point in the history
  • Loading branch information
cleac committed Aug 4, 2020
1 parent 2d59b35 commit 2b3232a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Accounts.vala
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,11 @@ public class Olifant.Accounts : Object {
info ("Reloading instances info");
instance_data = new GenericArray<API.Instance?> ();
for (var curId = 0; curId < saved_accounts.length; curId++) {
// Kind of a dirty hack, if no value added, but if array size
// Kind of a dirty hack, if no value added, but if array size
// specified in constructor, value gets deconstructed as long
// as it leaves load_single_instance function
instance_data.add (null);
load_single_instance.begin (curId++);
load_single_instance.begin (curId);
}
}

Expand Down

0 comments on commit 2b3232a

Please sign in to comment.