mirror of
https://github.com/Crypto-Notepad/Crypto-Notepad.git
synced 2026-03-11 08:55:25 +00:00
When auto lock on minimize, editor text was visible in windows taskbar
This commit is contained in:
parent
bea1925438
commit
6606caf589
1 changed files with 11 additions and 0 deletions
|
|
@ -31,6 +31,17 @@ public MainForm()
|
|||
richTextBox.AllowDrop = true;
|
||||
}
|
||||
|
||||
protected override void WndProc(ref Message m)
|
||||
{
|
||||
const int WM_SYSCOMMAND = 0x112;
|
||||
const int SC_MINIMIZE = 0xF020;
|
||||
if (m.Msg == WM_SYSCOMMAND & m.WParam.ToInt32() == SC_MINIMIZE & settings.autoLock & !string.IsNullOrEmpty(PublicVar.encryptionKey.Get()))
|
||||
{
|
||||
richTextBox.Visible = false;
|
||||
}
|
||||
base.WndProc(ref m);
|
||||
}
|
||||
|
||||
#region Methods
|
||||
private void DecryptAES()
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue