Beispiel #1
0
            private void PrepareUpdater()
            {
                var options = Settings.ToPreviewsOptions();

                if (_previewsUpdater == null)
                {
                    _previewsUpdater = new DarkPreviewsUpdater(AcRootDirectory.Instance.RequireValue, options);
                }
                else
                {
                    _previewsUpdater.SetOptions(options);
                }
            }
Beispiel #2
0
            public Updater([NotNull] IReadOnlyList <ToUpdatePreview> entries, [NotNull] DarkPreviewsOptions options, [CanBeNull] string presetName,
                           [CanBeNull] DarkPreviewsUpdater updater)
            {
                _entries    = entries;
                _options    = options;
                _presetName = presetName;

                if (updater == null)
                {
                    _localUpdater = true;
                    _updater      = new DarkPreviewsUpdater(AcRootDirectory.Instance.RequireValue, options);
                }
                else
                {
                    _updater = updater;
                    _updater.SetOptions(options);
                }
            }