mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-16 05:34:16 +01:00
Fix new line if no disable button
This commit is contained in:
parent
a104365b32
commit
d756dc0287
1 changed files with 15 additions and 8 deletions
|
|
@ -365,13 +365,19 @@ namespace Dalamud.Plugin
|
||||||
ImGui.Text($"{command.Key} → {command.Value.HelpMessage}");
|
ImGui.Text($"{command.Key} → {command.Value.HelpMessage}");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!installedPlugin.IsRaw && ImGui.Button(Loc.Localize("InstallerDisable", "Disable"))) {
|
ImGui.NewLine();
|
||||||
try {
|
|
||||||
this.dalamud.PluginManager.DisablePlugin(installedPlugin.Definition);
|
if (!installedPlugin.IsRaw) {
|
||||||
} catch (Exception exception) {
|
ImGui.SameLine();
|
||||||
Log.Error(exception, "Could not disable plugin.");
|
|
||||||
this.errorModalDrawing = true;
|
if (ImGui.Button(Loc.Localize("InstallerDisable", "Disable"))) {
|
||||||
this.errorModalOnNextFrame = true;
|
try {
|
||||||
|
this.dalamud.PluginManager.DisablePlugin(installedPlugin.Definition);
|
||||||
|
} catch (Exception exception) {
|
||||||
|
Log.Error(exception, "Could not disable plugin.");
|
||||||
|
this.errorModalDrawing = true;
|
||||||
|
this.errorModalOnNextFrame = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -397,7 +403,8 @@ namespace Dalamud.Plugin
|
||||||
ImGui.TextColored(new Vector4(0.5f, 0.5f, 0.5f, 1.0f), $" v{pluginDefinition.AssemblyVersion}");
|
ImGui.TextColored(new Vector4(0.5f, 0.5f, 0.5f, 1.0f), $" v{pluginDefinition.AssemblyVersion}");
|
||||||
|
|
||||||
if(installedPlugin.IsRaw) {
|
if(installedPlugin.IsRaw) {
|
||||||
ImGui.TextColored(new Vector4(1.0f, 0.0f, 0.0f, 1.0f), "To update or disable this plugin, please remove it from the devPlugins folder.");
|
ImGui.SameLine();
|
||||||
|
ImGui.TextColored(new Vector4(1.0f, 0.0f, 0.0f, 1.0f), " To update or disable this plugin, please remove it from the devPlugins folder.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue