mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2025-12-04 15:49:33 +01:00
Fix globe icon #125
This commit is contained in:
@@ -53,12 +53,7 @@ public class PwIconFactory {
|
||||
PwIconStandard icon = (PwIconStandard) cache.get(iconId);
|
||||
|
||||
if (icon == null) {
|
||||
if (iconId == 1) {
|
||||
icon = PwIconStandard.FIRST;
|
||||
}
|
||||
else {
|
||||
icon = new PwIconStandard(iconId);
|
||||
}
|
||||
icon = new PwIconStandard(iconId);
|
||||
cache.put(iconId, icon);
|
||||
}
|
||||
|
||||
|
||||
@@ -22,9 +22,6 @@ package com.kunzisoft.keepass.database;
|
||||
public class PwIconStandard extends PwIcon {
|
||||
public final int iconId;
|
||||
|
||||
// The first is number 0
|
||||
public static PwIconStandard FIRST = new PwIconStandard(0);
|
||||
|
||||
public static final int KEY = 0;
|
||||
public static final int TRASH = 43;
|
||||
public static final int FOLDER = 48;
|
||||
|
||||
@@ -31,7 +31,7 @@ public abstract class PwNode<Parent extends PwGroup> implements ISmallTimeLogger
|
||||
|
||||
protected Parent parent = null;
|
||||
|
||||
protected PwIconStandard icon = PwIconStandard.FIRST;
|
||||
protected PwIconStandard icon = new PwIconStandard(0);
|
||||
|
||||
protected PwDate creation = new PwDate();
|
||||
protected PwDate lastMod = new PwDate();
|
||||
|
||||
Reference in New Issue
Block a user