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;
|
private static Config Configuration;
|
||||||
|
|
||||||
public static void Init()
|
public static void Init()
|
||||||
|
{
|
||||||
|
bool success = false;
|
||||||
|
|
||||||
|
while (!success)
|
||||||
{
|
{
|
||||||
if (File.Exists(CONFIGPATH))
|
if (File.Exists(CONFIGPATH))
|
||||||
{
|
{
|
||||||
@@ -47,6 +51,7 @@ namespace Password_Manager
|
|||||||
if (path != null && recipient != null)
|
if (path != null && recipient != null)
|
||||||
{
|
{
|
||||||
Configuration = new Config(path, recipient);
|
Configuration = new Config(path, recipient);
|
||||||
|
success = true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -58,6 +63,7 @@ namespace Password_Manager
|
|||||||
CreateDefaultConfig();
|
CreateDefaultConfig();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public static string GetPath()
|
public static string GetPath()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user