mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-23 08:17:47 +01:00
refactor: new code style in UiBuilder.cs
This commit is contained in:
parent
a52f54774e
commit
f5830cf09a
3 changed files with 143 additions and 106 deletions
|
|
@ -439,11 +439,11 @@ namespace Dalamud.Plugin
|
|||
}
|
||||
}
|
||||
|
||||
if (installedPlugin.PluginInterface.UiBuilder.OnOpenConfigUi != null) {
|
||||
if (installedPlugin.PluginInterface.UiBuilder.HasConfigUi) {
|
||||
ImGui.SameLine();
|
||||
|
||||
if (ImGui.Button(Loc.Localize("InstallerOpenConfig", "Open Configuration")))
|
||||
installedPlugin.PluginInterface.UiBuilder.OnOpenConfigUi?.Invoke(null, null);
|
||||
installedPlugin.PluginInterface.UiBuilder.OpenConfigUi();
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(installedPlugin.Definition.RepoUrl)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue