Zoom label does not update on Settings panel init
Closed this issue · 3 comments
vinsworldcom commented
When opening Settings panel, the zoom label is set to the default, not the actual value since there is no code to update it on panel initialization, only when the slider is moved.
vinsworldcom commented
Here is a patch:
diff --git a/NppMarkdownPanel/Forms/SettingsForm.cs b/NppMarkdownPanel/Forms/SettingsForm.cs
index a3e922f..d76bd95 100644
--- a/NppMarkdownPanel/Forms/SettingsForm.cs
+++ b/NppMarkdownPanel/Forms/SettingsForm.cs
@@ -33,6 +33,7 @@ namespace NppMarkdownPanel.Forms
InitializeComponent();
trackBar1.Value = zoomLevel;
+ lblZoomValue.Text = $"{zoomLevel}%";
tbCssFile.Text = cssFileName;
tbDarkmodeCssFile.Text = cssDarkModeFileName;
tbHtmlFile.Text = htmlFileName;
Cheers.
mohzy83 commented
I could apply the patch.
Seems to work!
Cheers.
mohzy83 commented
done