fix warnings

This commit is contained in:
goat 2023-06-12 20:17:30 +02:00
parent faedf16d47
commit 0a829d304e
No known key found for this signature in database
GPG key ID: 49E2AA8C6A76498B
9 changed files with 266 additions and 189 deletions

View file

@ -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 =>