We don't respect the close key in any window
This commit is contained in:
@@ -79,6 +79,8 @@ public sealed class ChatLogWindow : Window, IUiComponent {
|
||||
Size = new Vector2(500, 250);
|
||||
SizeCondition = ImGuiCond.FirstUseEver;
|
||||
|
||||
RespectCloseHotkey = false;
|
||||
|
||||
PayloadHandler = new PayloadHandler(this);
|
||||
HandlerLender = new Lender<PayloadHandler>(() => new PayloadHandler(this));
|
||||
|
||||
|
||||
@@ -18,6 +18,8 @@ public class CommandHelpWindow : Window {
|
||||
|
||||
Flags = ImGuiWindowFlags.NoSavedSettings | ImGuiWindowFlags.NoTitleBar | ImGuiWindowFlags.NoMove |
|
||||
ImGuiWindowFlags.NoResize | ImGuiWindowFlags.NoFocusOnAppearing | ImGuiWindowFlags.AlwaysAutoResize;
|
||||
|
||||
RespectCloseHotkey = false;
|
||||
}
|
||||
|
||||
// Sets IsOpen to true if it should be drawn
|
||||
|
||||
@@ -19,6 +19,8 @@ internal class Popout : Window
|
||||
|
||||
Size = new Vector2(350, 350);
|
||||
SizeCondition = ImGuiCond.FirstUseEver;
|
||||
|
||||
RespectCloseHotkey = false;
|
||||
}
|
||||
|
||||
public override void PreDraw()
|
||||
|
||||
@@ -22,6 +22,8 @@ public class SeStringDebugger : Window
|
||||
MaximumSize = new Vector2(float.MaxValue, float.MaxValue)
|
||||
};
|
||||
|
||||
RespectCloseHotkey = false;
|
||||
|
||||
#if DEBUG
|
||||
Plugin.Commands.Register("/chat2Debugger").Execute += Toggle;
|
||||
#endif
|
||||
|
||||
@@ -40,6 +40,8 @@ public sealed class SettingsWindow : Window, IUiComponent
|
||||
new About(),
|
||||
};
|
||||
|
||||
RespectCloseHotkey = false;
|
||||
|
||||
Initialise();
|
||||
|
||||
Plugin.Commands.Register("/chat2", "Perform various actions with Chat 2.").Execute += Command;
|
||||
|
||||
Reference in New Issue
Block a user