aboutsummaryrefslogtreecommitdiff
path: root/src/familiar-players-db.vala
diff options
context:
space:
mode:
Diffstat (limited to 'src/familiar-players-db.vala')
-rw-r--r--src/familiar-players-db.vala9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/familiar-players-db.vala b/src/familiar-players-db.vala
index 3d7da1f..88bc01f 100644
--- a/src/familiar-players-db.vala
+++ b/src/familiar-players-db.vala
@@ -78,15 +78,12 @@ public class FamiliarPlayersDB : GLib.Object
return false;
}
- private bool load_data_from_key_file()
- {
+ private bool load_data_from_key_file(){
try{
string[] desktops = this.key_file.get_string_list(GROUP_NAME,
KEY_NAME);
-
- int i = 0;
- while (desktops[i] != null) {
- this.players_DB.set(desktops[i], true);
+ foreach(string s in desktops){
+ this.players_DB.set(s, true);
}
return true;
}