mirror of
https://github.com/knah/VRCMelonAssistant.git
synced 2024-05-21 12:53:18 +12:00
add readonly modifiers where appropriate
This commit is contained in:
parent
cfe66c84e1
commit
d4753910f4
|
@ -13,7 +13,7 @@ namespace ModAssistant
|
|||
public static string LoadedLanguage { get; private set; }
|
||||
public static List<CultureInfo> LoadedLanguages { get => availableCultures.ToList(); }
|
||||
public static bool FirstRun = true;
|
||||
private static string[] availableLanguageCodes = { "de", "en", "fr", "it", "ko", "nl", "ru", "sv", "zh" };
|
||||
private static readonly string[] availableLanguageCodes = { "de", "en", "fr", "it", "ko", "nl", "ru", "sv", "zh" };
|
||||
private static IEnumerable<CultureInfo> availableCultures;
|
||||
|
||||
public static void LoadLanguages()
|
||||
|
|
|
@ -22,15 +22,15 @@ namespace ModAssistant
|
|||
/// <summary>
|
||||
/// Local dictionary of Resource Dictionaries mapped by their names.
|
||||
/// </summary>
|
||||
private static Dictionary<string, Theme> loadedThemes = new Dictionary<string, Theme>();
|
||||
private static List<string> preInstalledThemes = new List<string> { "Light", "Dark", "BSMG", "Light Pink" };
|
||||
private static readonly Dictionary<string, Theme> loadedThemes = new Dictionary<string, Theme>();
|
||||
private static readonly List<string> preInstalledThemes = new List<string> { "Light", "Dark", "BSMG", "Light Pink" };
|
||||
|
||||
/// <summary>
|
||||
/// Index of "LoadedTheme" in App.xaml
|
||||
/// </summary>
|
||||
private static readonly int LOADED_THEME_INDEX = 3;
|
||||
|
||||
private static List<string> supportedVideoExtensions = new List<string>() { ".mp4", ".webm", ".mkv", ".avi", ".m2ts" };
|
||||
private static readonly List<string> supportedVideoExtensions = new List<string>() { ".mp4", ".webm", ".mkv", ".avi", ".m2ts" };
|
||||
|
||||
/// <summary>
|
||||
/// Load all themes from local Themes subfolder and from embedded resources.
|
||||
|
|
|
@ -15,8 +15,8 @@ namespace ModAssistant
|
|||
private static Version CurrentVersion;
|
||||
private static Version LatestVersion;
|
||||
private static bool NeedsUpdate = false;
|
||||
private static string NewExe = Path.Combine(Path.GetDirectoryName(Utils.ExePath), "ModAssistant.exe");
|
||||
private static string Arguments = App.Arguments;
|
||||
private static readonly string NewExe = Path.Combine(Path.GetDirectoryName(Utils.ExePath), "ModAssistant.exe");
|
||||
private static readonly string Arguments = App.Arguments;
|
||||
|
||||
public static async Task<bool> CheckForUpdate()
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue