mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2026-12-05 08:12:28 -08:00
Remove db name for v3
This commit is contained in:
1 parent
60eff63569
commit
db98f4b30c
6 files changed
+32
-21
No files matched your search
@@ -277,18 +277,32 @@ public class Database {
|
||||
return getPwDatabase().getVersion().toString();
|
||||
}
|
||||
|
||||
public boolean containsName() {
|
||||
switch (getPwDatabase().getVersion()) {
|
||||
default:
|
||||
return false;
|
||||
case V4:
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return getPwDatabase().getName();
|
||||
switch (getPwDatabase().getVersion()) {
|
||||
default:
|
||||
return "";
|
||||
case V4:
|
||||
return ((PwDatabaseV4) getPwDatabase()).getName();
|
||||
}
|
||||
}
|
||||
|
||||
public void assignName(String name) {
|
||||
getPwDatabase().setName(name);
|
||||
switch (getPwDatabase().getVersion()) {
|
||||
case V4:
|
||||
((PwDatabaseV4) getPwDatabase()).setNameChanged(new PwDate());
|
||||
PwDatabaseV4 databaseV4 = ((PwDatabaseV4) getPwDatabase());
|
||||
databaseV4.setName(name);
|
||||
databaseV4.setNameChanged(new PwDate());
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public boolean containsDescription() {
|
||||
|
||||
Reference in new issue
Block a user