mirror of
https://github.com/Crypto-Notepad/Crypto-Notepad.git
synced 2026-03-11 08:55:25 +00:00
fixed bug with inserting date/time
This commit is contained in:
parent
3a5e786eea
commit
342bedaabc
1 changed files with 1 additions and 3 deletions
|
|
@ -1628,9 +1628,7 @@ private void ReadOnlyMainMenu_Click(object sender, EventArgs e)
|
|||
private void InsertDateTimeMainMenu_Click(object sender, EventArgs e)
|
||||
{
|
||||
DateTime now = DateTime.Now;
|
||||
richTextBox.Text += now.ToString();
|
||||
richTextBox.SelectionStart = richTextBox.Text.Length;
|
||||
richTextBox.ScrollToCaret();
|
||||
richTextBox.SelectedText = now.ToString();
|
||||
richTextBox.Modified = true;
|
||||
if (!Text.Contains("*"))
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue