maint: hotreload updated to 1.13.7
This commit is contained in:
@@ -1,20 +1,21 @@
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
using SingularityGroup.HotReload.Editor.Cli;
|
||||
using SingularityGroup.HotReload.Editor.Localization;
|
||||
using UnityEditor;
|
||||
|
||||
namespace SingularityGroup.HotReload.Editor {
|
||||
internal sealed class ExposeServerOption : ComputerOptionBase {
|
||||
|
||||
public override string ShortSummary => "Allow Devices to Connect";
|
||||
public override string Summary => "Allow Devices to Connect (WiFi)";
|
||||
public override string ShortSummary => Translations.Settings.OptionExposeServerShort;
|
||||
public override string Summary => Translations.Settings.OptionExposeServerFull;
|
||||
|
||||
public override void InnerOnGUI() {
|
||||
string description;
|
||||
if (GetValue()) {
|
||||
description = "The HotReload server is reachable from devices on the same Wifi network";
|
||||
description = Translations.Settings.OptionExposeServerDescriptionEnabled;
|
||||
} else {
|
||||
description = "The HotReload server is available to your computer only. Other devices cannot connect to it.";
|
||||
description = Translations.Settings.OptionExposeServerDescriptionDisabled;
|
||||
}
|
||||
EditorGUILayout.LabelField(description, HotReloadWindowStyles.WrapStyle);
|
||||
}
|
||||
@@ -38,10 +39,9 @@ namespace SingularityGroup.HotReload.Editor {
|
||||
RunOnMainThreadSync(() => {
|
||||
var isRunningResult = ServerHealthCheck.I.IsServerHealthy;
|
||||
if (isRunningResult) {
|
||||
var restartServer = EditorUtility.DisplayDialog("Hot Reload",
|
||||
$"When changing '{Summary}', the Hot Reload server must be restarted for this to take effect." +
|
||||
"\nDo you want to restart it now?",
|
||||
"Restart server", "Don't restart");
|
||||
var restartServer = EditorUtility.DisplayDialog(Translations.Dialogs.DialogTitleHotReload,
|
||||
string.Format(Translations.Dialogs.DialogMessageRestartExposeServer, Summary),
|
||||
Translations.Dialogs.DialogButtonRestartServer, Translations.Dialogs.DialogButtonDontRestart);
|
||||
if (restartServer) {
|
||||
CodePatcher.I.ClearPatchedMethods();
|
||||
EditorCodePatcher.RestartCodePatcher().Forget();
|
||||
|
||||
Reference in New Issue
Block a user