Small tweaks

This commit is contained in:
John Gross
2017-09-22 20:08:47 -07:00
parent bb42dd026c
commit ad1502e998
2 changed files with 5 additions and 2 deletions

View File

@@ -96,7 +96,9 @@ namespace Torch.Managers
public void LoadPlugins() public void LoadPlugins()
{ {
DownloadPluginUpdates(); if (Torch.Config.ShouldUpdatePlugins)
DownloadPluginUpdates();
_log.Info("Loading plugins..."); _log.Info("Loading plugins...");
var pluginItems = Directory.EnumerateFiles(PluginDir, "*.zip").Union(Directory.EnumerateDirectories(PluginDir)); var pluginItems = Directory.EnumerateFiles(PluginDir, "*.zip").Union(Directory.EnumerateDirectories(PluginDir));
foreach (var item in pluginItems) foreach (var item in pluginItems)

View File

@@ -1,5 +1,6 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.Specialized;
using System.ComponentModel; using System.ComponentModel;
using System.Linq; using System.Linq;
using System.Reflection; using System.Reflection;
@@ -12,7 +13,7 @@ namespace Torch
/// <summary> /// <summary>
/// Provides a method to notify an observer of changes to an object's properties. /// Provides a method to notify an observer of changes to an object's properties.
/// </summary> /// </summary>
public class ViewModel : INotifyPropertyChanged public abstract class ViewModel : INotifyPropertyChanged
{ {
public event PropertyChangedEventHandler PropertyChanged; public event PropertyChangedEventHandler PropertyChanged;