Beispiel #1
0
        internal static bool ValidateToS()
        {
            var plugin = Svc <ImportPlugin> .Plugin;

            if (plugin.ImportConfig.HasAgreedToTOS)
            {
                return(true);
            }

            var consent = TermsOfLicense.AskConsent();

            if (!consent)
            {
                return(false);
            }

            plugin.ImportConfig.HasAgreedToTOS = true;
            plugin.SaveConfig();

            return(true);
        }
Beispiel #2
0
        private bool ValidateToS()
        {
            var plugin = Svc <EpubImporterPlugin> .Plugin;

            if (plugin.Config.HasAgreedToTOS)
            {
                return(true);
            }

            var consent = TermsOfLicense.AskConsent();

            if (!consent)
            {
                return(false);
            }

            plugin.Config.HasAgreedToTOS = true;
            plugin.SaveConfig();

            return(true);
        }