mirror of
https://github.com/wismna/ModernKeePass.git
synced 2025-10-04 08:00:16 -04:00
Changed default icon from IntToSymbolConverter to a parameter
Filtered symbol list from drop down list to only show actually settable symbols
This commit is contained in:
@@ -75,6 +75,7 @@ namespace ModernKeePass.Converters
|
||||
public object ConvertBack(object value, Type targetType, object parameter, string language)
|
||||
{
|
||||
var symbol = (Symbol) value;
|
||||
var defaultIcon = (int?) parameter ?? -1;
|
||||
switch (symbol)
|
||||
{
|
||||
case Symbol.Delete: return (int)PwIcon.TrashBin;
|
||||
@@ -123,7 +124,7 @@ namespace ModernKeePass.Converters
|
||||
case Symbol.ZeroBars: return (int) PwIcon.Energy;
|
||||
case Symbol.FourBars: return (int) PwIcon.EnergyCareful;
|
||||
case Symbol.Scan: return (int) PwIcon.Scanner;
|
||||
default: return (int) PwIcon.Key;
|
||||
default: return defaultIcon;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user