using Gee; namespace Dino.Plugins { public class Registry { internal ArrayList encryption_list_entries = new ArrayList(); public bool register_encryption_list_entry(EncryptionListEntry entry) { lock(encryption_list_entries) { foreach(var e in encryption_list_entries) { if (e.encryption == entry.encryption) return false; } encryption_list_entries.add(entry); encryption_list_entries.sort((a,b) => b.name.collate(a.name)); return true; } } } }