| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -43,7 +43,7 @@ public partial class MainWindow : Window | |||
| 43 | 43 | public static readonly string projectNameFile = "ProjectName.txt"; | |
| 44 | 44 | public static string preferredVersion = null; | |
| 45 | 45 | public static int projectNameSetting = 0; // 0 = folder or ProjectName.txt if exists, 1=ProductName | |
| 46 | - public static readonly string initScriptFileFullPath = Tools.GetSafeFilePath("Scripts", "InitializeProject.cs"); | ||
| 46 | + public static string initScriptFileFullPath; | ||
| 47 | 47 | ||
| 48 | 48 | const string contextRegRoot = "Software\\Classes\\Directory\\Background\\shell"; | |
| 49 | 49 | const string githubURL = "https://github.com/unitycoder/UnityLauncherPro"; | |
@@ -3835,6 +3835,11 @@ private void tabControl_PreviewKeyDown(object sender, KeyEventArgs e) | |||
| 3835 | 3835 | ||
| 3836 | 3836 | private void btnFetchLatestInitScript_Click(object sender, RoutedEventArgs e) | |
| 3837 | 3837 | { | |
| 3838 | + if (string.IsNullOrEmpty(initScriptFileFullPath) == true) | ||
| 3839 | + { | ||
| 3840 | + initScriptFileFullPath = Tools.GetSafeFilePath("Scripts","InitializeProject.cs"); | ||
| 3841 | + } | ||
| 3842 | + | ||
| 3838 | 3843 | Tools.DownloadInitScript(initScriptFileFullPath, txtCustomInitFileURL.Text); | |
| 3839 | 3844 | } | |
| 3840 | 3845 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments