public async override Task<bool> InitializeAsync(Framework.Interfaces.ICore core) { if (PluginSettings.Instance == null) { var p = new PluginSettings(core); } AddAction(ACTION_UPDATESTATUS_ALL); AddAction(ACTION_UPDATESTATUS_SELECTED); AddAction(ACTION_UPDATESTATUS_ACTIVE); AddAction(ACTION_UPDATEFULL_ALL); AddAction(ACTION_UPDATEFULL_SELECTED); AddAction(ACTION_UPDATEFULL_ACTIVE); core.LanguageItems.Add(new Framework.Data.LanguageItem(STR_NOGEOCACHESELECTED)); core.LanguageItems.Add(new Framework.Data.LanguageItem(STR_ERROR)); core.LanguageItems.Add(new Framework.Data.LanguageItem(STR_UNABLELIVE)); core.LanguageItems.Add(new Framework.Data.LanguageItem(STR_UPDATINGGEOCACHES)); core.LanguageItems.Add(new Framework.Data.LanguageItem(STR_UPDATINGGEOCACHE)); core.LanguageItems.Add(new Framework.Data.LanguageItem(SettingsPanel.STR_DESELECT)); core.LanguageItems.Add(new Framework.Data.LanguageItem(SettingsPanel.STR_EXTRADELAY)); core.LanguageItems.Add(new Framework.Data.LanguageItem(SettingsPanel.STR_EXTRADELAYLOGS)); core.LanguageItems.Add(new Framework.Data.LanguageItem(SettingsPanel.STR_MAXLOGS)); return await base.InitializeAsync(core); }
public PluginSettings(ICore core) { _uniqueInstance = this; _core = core; }