mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
Postmerge
This commit is contained in:
parent
033a57d19d
commit
27e96e12ea
1 changed files with 12 additions and 4 deletions
|
|
@ -12,6 +12,8 @@ using Dalamud.Game;
|
|||
using Dalamud.Game.Command;
|
||||
using Dalamud.Interface.Colors;
|
||||
using Dalamud.Interface.Components;
|
||||
using Dalamud.Interface.ImGuiNotification;
|
||||
using Dalamud.Interface.ImGuiNotification.Internal;
|
||||
using Dalamud.Interface.Internal.Notifications;
|
||||
using Dalamud.Interface.Utility;
|
||||
using Dalamud.Interface.Utility.Raii;
|
||||
|
|
@ -76,6 +78,8 @@ internal class ConsoleWindow : Window, IDisposable
|
|||
private int historyPos;
|
||||
private int copyStart = -1;
|
||||
|
||||
private IActiveNotification? prevCopyNotification;
|
||||
|
||||
/// <summary>Initializes a new instance of the <see cref="ConsoleWindow"/> class.</summary>
|
||||
/// <param name="configuration">An instance of <see cref="DalamudConfiguration"/>.</param>
|
||||
public ConsoleWindow(DalamudConfiguration configuration)
|
||||
|
|
@ -441,10 +445,14 @@ internal class ConsoleWindow : Window, IDisposable
|
|||
return;
|
||||
|
||||
ImGui.SetClipboardText(sb.ToString());
|
||||
Service<NotificationManager>.Get().AddNotification(
|
||||
$"{n:n0} line(s) copied.",
|
||||
this.WindowName,
|
||||
NotificationType.Success);
|
||||
this.prevCopyNotification?.DismissNow();
|
||||
this.prevCopyNotification = Service<NotificationManager>.Get().AddNotification(
|
||||
new()
|
||||
{
|
||||
Title = this.WindowName,
|
||||
Content = $"{n:n0} line(s) copied.",
|
||||
Type = NotificationType.Success,
|
||||
});
|
||||
}
|
||||
|
||||
private void DrawOptionsToolbar()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue