mirror of
https://git.alee14.me/shiftos-archive/ShiftOS_TheReturn.git
synced 2025-01-22 18:02:16 +00:00
Fix sizing issue with notifications, and UP key in terminal
This commit is contained in:
parent
ecf5297dbb
commit
3dd402277b
2 changed files with 8 additions and 0 deletions
|
@ -338,6 +338,7 @@ namespace ShiftOS.WinForms.Applications
|
|||
var tostring3 = txt.Lines[txt.Lines.Length - 1];
|
||||
if (tostring3 == $"{SaveSystem.CurrentUser.Username}@{SaveSystem.CurrentSave.SystemName}:~$ ")
|
||||
Console.Write(TerminalBackend.LastCommand);
|
||||
ConsoleEx.OnFlush?.Invoke();
|
||||
a.SuppressKeyPress = true;
|
||||
|
||||
}
|
||||
|
|
|
@ -74,6 +74,10 @@ namespace ShiftOS.WinForms
|
|||
{
|
||||
lbnotemsg.Text = msg;
|
||||
lbnotetitle.Text = title;
|
||||
int height = pnlnotificationbox.Height;
|
||||
pnlnotificationbox.AutoSize = false;
|
||||
pnlnotificationbox.Height = height;
|
||||
pnlnotificationbox.Width = lbnotetitle.Width;
|
||||
|
||||
var ctl = flnotifications.Controls.ToList().FirstOrDefault(x => x.Tag.ToString() == app);
|
||||
if (ctl == null)
|
||||
|
@ -97,8 +101,11 @@ namespace ShiftOS.WinForms
|
|||
notekiller.Tick += (o, a) =>
|
||||
{
|
||||
pnlnotificationbox.Hide();
|
||||
pnlnotificationbox.AutoSize = true;
|
||||
};
|
||||
Engine.AudioManager.PlayStream(Properties.Resources.infobox);
|
||||
|
||||
|
||||
pnlnotificationbox.Show();
|
||||
pnlnotificationbox.BringToFront();
|
||||
notekiller.Start();
|
||||
|
|
Loading…
Reference in a new issue