From 88d77b3d13920e23e3c3932acd35f6e677e116af Mon Sep 17 00:00:00 2001 From: Soumya Ranjan Mahunt Date: Wed, 26 Feb 2020 08:06:07 +0530 Subject: [PATCH 1/3] Fixed goto crashing on zero input. --- src/Notepads/Controls/GoTo/GoToControl.xaml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Notepads/Controls/GoTo/GoToControl.xaml.cs b/src/Notepads/Controls/GoTo/GoToControl.xaml.cs index 1704b3ba6..4a08acd78 100644 --- a/src/Notepads/Controls/GoTo/GoToControl.xaml.cs +++ b/src/Notepads/Controls/GoTo/GoToControl.xaml.cs @@ -122,7 +122,7 @@ private void GoToBar_BeforeTextChanging(TextBox sender, TextBoxBeforeTextChangin NotificationCenter.Instance.PostNotification(_resourceLoader.GetString("GoTo_NotificationMsg_InputError_InvalidInput"), 1500); args.Cancel = true; } - else if (line > _maxLine) + else if (line > _maxLine || line == 0) { NotificationCenter.Instance.PostNotification(_resourceLoader.GetString("GoTo_NotificationMsg_InputError_ExceedInputLimit"), 1500); args.Cancel = true; From f6a28d3e4ce45078a7a81e985feb882061247c12 Mon Sep 17 00:00:00 2001 From: Soumya Ranjan Mahunt Date: Wed, 26 Feb 2020 08:07:54 +0530 Subject: [PATCH 2/3] Revert "Fixed goto crashing on zero input." This reverts commit 88d77b3d13920e23e3c3932acd35f6e677e116af. --- src/Notepads/Controls/GoTo/GoToControl.xaml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Notepads/Controls/GoTo/GoToControl.xaml.cs b/src/Notepads/Controls/GoTo/GoToControl.xaml.cs index 4a08acd78..1704b3ba6 100644 --- a/src/Notepads/Controls/GoTo/GoToControl.xaml.cs +++ b/src/Notepads/Controls/GoTo/GoToControl.xaml.cs @@ -122,7 +122,7 @@ private void GoToBar_BeforeTextChanging(TextBox sender, TextBoxBeforeTextChangin NotificationCenter.Instance.PostNotification(_resourceLoader.GetString("GoTo_NotificationMsg_InputError_InvalidInput"), 1500); args.Cancel = true; } - else if (line > _maxLine || line == 0) + else if (line > _maxLine) { NotificationCenter.Instance.PostNotification(_resourceLoader.GetString("GoTo_NotificationMsg_InputError_ExceedInputLimit"), 1500); args.Cancel = true; From 44afde00c41364b19e2370da2e33106e78bb8773 Mon Sep 17 00:00:00 2001 From: Soumya Ranjan Mahunt Date: Wed, 4 Mar 2020 02:02:03 +0530 Subject: [PATCH 3/3] Updated zoom slider style --- src/Notepads/NotepadsMainPage.xaml | 2 +- src/Notepads/Resource/CustomSliderStyle.xaml | 194 +++++++++++++++++++ 2 files changed, 195 insertions(+), 1 deletion(-) diff --git a/src/Notepads/NotepadsMainPage.xaml b/src/Notepads/NotepadsMainPage.xaml index fb5efbbb9..2cc0f404d 100644 --- a/src/Notepads/NotepadsMainPage.xaml +++ b/src/Notepads/NotepadsMainPage.xaml @@ -466,7 +466,7 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +