mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-29 20:03:41 +01:00
fix warnings
This commit is contained in:
parent
faedf16d47
commit
0a829d304e
9 changed files with 266 additions and 189 deletions
|
|
@ -16,6 +16,9 @@ using Serilog;
|
|||
|
||||
namespace Dalamud.Interface.Internal.Windows.PluginInstaller;
|
||||
|
||||
/// <summary>
|
||||
/// ImGui widget used to manage profiles.
|
||||
/// </summary>
|
||||
internal class ProfileManagerWidget
|
||||
{
|
||||
private readonly PluginInstallerWindow installer;
|
||||
|
|
@ -25,11 +28,24 @@ internal class ProfileManagerWidget
|
|||
private string pickerSearch = string.Empty;
|
||||
private string profileNameEdit = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ProfileManagerWidget"/> class.
|
||||
/// </summary>
|
||||
/// <param name="installer">The plugin installer.</param>
|
||||
public ProfileManagerWidget(PluginInstallerWindow installer)
|
||||
{
|
||||
this.installer = installer;
|
||||
}
|
||||
|
||||
private enum Mode
|
||||
{
|
||||
Overview,
|
||||
EditSingleProfile,
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Draw this widget's contents.
|
||||
/// </summary>
|
||||
public void Draw()
|
||||
{
|
||||
switch (this.mode)
|
||||
|
|
@ -44,6 +60,9 @@ internal class ProfileManagerWidget
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Reset the widget.
|
||||
/// </summary>
|
||||
public void Reset()
|
||||
{
|
||||
this.mode = Mode.Overview;
|
||||
|
|
@ -428,12 +447,6 @@ internal class ProfileManagerWidget
|
|||
}
|
||||
}
|
||||
|
||||
private enum Mode
|
||||
{
|
||||
Overview,
|
||||
EditSingleProfile,
|
||||
}
|
||||
|
||||
private static class Locs
|
||||
{
|
||||
public static string TooltipEnableDisable =>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue