Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zoom label does not update on Settings panel init #58

Closed
vinsworldcom opened this issue Dec 13, 2022 · 3 comments
Closed

Zoom label does not update on Settings panel init #58

vinsworldcom opened this issue Dec 13, 2022 · 3 comments
Labels
bug Something isn't working
Milestone

Comments

@vinsworldcom
Copy link

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
Copy link
Author

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.

@vinsworldcom vinsworldcom reopened this Dec 13, 2022
@mohzy83
Copy link
Owner

mohzy83 commented Dec 13, 2022

I could apply the patch.
Seems to work!
Cheers.

@mohzy83 mohzy83 added the bug Something isn't working label Dec 13, 2022
@mohzy83 mohzy83 added this to the 0.7.1 milestone Dec 13, 2022
@mohzy83
Copy link
Owner

mohzy83 commented Dec 14, 2022

done

@mohzy83 mohzy83 closed this as completed Dec 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants