mirror of
https://github.com/greenshot/greenshot
synced 2025-08-14 02:37:03 -07:00
This change should make the UI Icon Size setting dynamic, clearing all cached icons when the size changes (in the settings UI) so if they have a dynamic size the best is selected.
This commit is contained in:
parent
c50e5fa5ab
commit
61c2921b2a
16 changed files with 140 additions and 123 deletions
|
@ -414,7 +414,14 @@ namespace Greenshot {
|
|||
coreConfiguration.DWMBackgroundColor = colorButton_window_background.SelectedColor;
|
||||
coreConfiguration.UpdateCheckInterval = (int)numericUpDown_daysbetweencheck.Value;
|
||||
|
||||
Size previousValue = coreConfiguration.IconSize;
|
||||
coreConfiguration.IconSize = new Size((int)numericUpdownIconSize.Value, (int)numericUpdownIconSize.Value);
|
||||
|
||||
// Clear caches when changing the settings
|
||||
if (previousValue != coreConfiguration.IconSize) {
|
||||
PluginUtils.ClearExeIconCache();
|
||||
MainForm.ResetImageScalingSize();
|
||||
}
|
||||
coreConfiguration.FixIconSize();
|
||||
try {
|
||||
if (checkbox_autostartshortcut.Checked) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue