Add auto-fill to plugin project clone based on clipboard
This commit is contained in:
@@ -345,6 +345,11 @@ namespace FlaxEditor.Windows
|
||||
gitPathTextBox.Clear();
|
||||
popup.Hide();
|
||||
};
|
||||
|
||||
// Auto-fill repo URL from clipboard
|
||||
var clipboardText = Clipboard.Text ?? string.Empty;
|
||||
if (clipboardText.EndsWith(".git") || clipboardText.Contains("github.com/"))
|
||||
gitPathTextBox.Text = clipboardText.Trim();
|
||||
}
|
||||
|
||||
private async void OnCloneButtonClicked(string pluginName, string gitPath)
|
||||
|
||||
Reference in New Issue
Block a user