Skip to content

Configuration of external Toolbar bitmap #1256

@alex-ilin

Description

@alex-ilin

When upgrading from v5.19.108.1602x64 (latest release) to v5.19.527.1731x64 (current release candidate) I expect to only update the Notepad3.exe, and keep existing configuration in the ini-file.
The newer version of Notepad3 correctly updates the [Settings]SettingsVersion from 1 to 2, and takes the existing configuration, storing it into the new [Settings2] section. However, it doesn't correctly handle the old configuration in the [Toolbar Images] section.

I have never touched that section, nor did I have any idea of what it does, didn't even know that it exists. It was not my choice or conscious decision to have setting in there be this way:

BitmapDefault=Toolbar.bmp
BitmapHot=ToolbarHot.bmp
BitmapDisabled=ToolbarDisabled.bmp

Those settings were probably there from an older version of Notepad3, since I always carry on my settings ini-file, having no desire to go through the settings after every installation.
I have always relied on the Notepad3 UI to make configuration changes, and so when I want it to display a HiDPI toolbar, that's what I use - the GUI menu. This leads to me experiencing issues like described here: #1137 (comment)

The proposed solution is to comment out or delete the [Toolbar Images] section.

However, in my opinion Notepad3 could have done that automatically, if all the users are going to have this problem. I propose to detect whether the mentioned section has exactly the contents I quoted. If so, that would strongly suggest that the user didn't mess with it in any way at all, so it can be commented out during the ini-file upgrade from version 1 to version 2.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions