mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-01-03 14:23:40 +01:00
Switch default behavior for /xlplugins to toggle
This commit is contained in:
parent
160dcc37ef
commit
6610d55f17
1 changed files with 7 additions and 20 deletions
|
|
@ -469,20 +469,13 @@ namespace Dalamud {
|
|||
this.isImguiDrawChangelogWindow = this.changelogWindow != null && this.changelogWindow.Draw();
|
||||
}
|
||||
}
|
||||
internal void OpenPluginInstaller(bool toggle = false) {
|
||||
if (!toggle)
|
||||
internal void OpenPluginInstaller()
|
||||
{
|
||||
if (this.pluginWindow == null)
|
||||
{
|
||||
this.pluginWindow = new PluginInstallerWindow(this, this.StartInfo.GameVersion);
|
||||
this.isImguiDrawPluginWindow = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (this.pluginWindow == null)
|
||||
{
|
||||
this.pluginWindow = new PluginInstallerWindow(this, this.StartInfo.GameVersion);
|
||||
}
|
||||
this.isImguiDrawPluginWindow ^= true;
|
||||
}
|
||||
this.isImguiDrawPluginWindow ^= true;
|
||||
}
|
||||
|
||||
internal void OpenChangelog() {
|
||||
|
|
@ -728,15 +721,9 @@ namespace Dalamud {
|
|||
Log.Information(info);
|
||||
}
|
||||
|
||||
private void OnOpenInstallerCommand(string command, string arguments) {
|
||||
if (arguments == "toggle" || arguments == "t")
|
||||
{
|
||||
OpenPluginInstaller(toggle: true);
|
||||
}
|
||||
else
|
||||
{
|
||||
OpenPluginInstaller();
|
||||
}
|
||||
private void OnOpenInstallerCommand(string command, string arguments)
|
||||
{
|
||||
OpenPluginInstaller();
|
||||
}
|
||||
|
||||
private void OnOpenCreditsCommand(string command, string arguments)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue