mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-29 03:49:19 +01:00
add open log at startup and persistent log settings
This commit is contained in:
parent
208055b0a4
commit
8e31f260e1
3 changed files with 22 additions and 5 deletions
|
|
@ -26,6 +26,9 @@ namespace Dalamud.Interface
|
|||
|
||||
public DalamudInterface(Dalamud dalamud) {
|
||||
this.dalamud = dalamud;
|
||||
if (dalamud.Configuration.LogOpenAtStartup) {
|
||||
OpenLog();
|
||||
}
|
||||
}
|
||||
|
||||
private bool isImguiDrawDemoWindow = false;
|
||||
|
|
@ -97,7 +100,7 @@ namespace Dalamud.Interface
|
|||
ImGui.Separator();
|
||||
if (ImGui.MenuItem("Open Log window"))
|
||||
{
|
||||
this.logWindow = new DalamudLogWindow(this.dalamud.CommandManager);
|
||||
this.logWindow = new DalamudLogWindow(this.dalamud.CommandManager, this.dalamud.Configuration);
|
||||
this.isImguiDrawLogWindow = true;
|
||||
}
|
||||
if (ImGui.BeginMenu("Set log level..."))
|
||||
|
|
@ -336,7 +339,7 @@ namespace Dalamud.Interface
|
|||
}
|
||||
|
||||
public void OpenLog() {
|
||||
this.logWindow = new DalamudLogWindow(this.dalamud.CommandManager);
|
||||
this.logWindow = new DalamudLogWindow(this.dalamud.CommandManager, this.dalamud.Configuration);
|
||||
this.isImguiDrawLogWindow = true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue