Not all code paths lead to a profile being created
This commit is contained in:
@@ -19,6 +19,10 @@ namespace Password_Manager
|
||||
private static Config Configuration;
|
||||
|
||||
public static void Init()
|
||||
{
|
||||
bool success = false;
|
||||
|
||||
while (!success)
|
||||
{
|
||||
if (File.Exists(CONFIGPATH))
|
||||
{
|
||||
@@ -47,6 +51,7 @@ namespace Password_Manager
|
||||
if (path != null && recipient != null)
|
||||
{
|
||||
Configuration = new Config(path, recipient);
|
||||
success = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -58,6 +63,7 @@ namespace Password_Manager
|
||||
CreateDefaultConfig();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static string GetPath()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user