mirror of
https://github.com/moparisthebest/keepass2android
synced 2025-01-30 14:40:21 -05:00
fixed a bug with creating databases
This commit is contained in:
parent
72ab132979
commit
ed7a85dde7
@ -55,7 +55,8 @@ namespace keepass2android
|
|||||||
public override void Run ()
|
public override void Run ()
|
||||||
{
|
{
|
||||||
|
|
||||||
if (! _dontSave) {
|
if (!_dontSave)
|
||||||
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
StatusLogger.UpdateMessage(UiStringKey.saving_database);
|
StatusLogger.UpdateMessage(UiStringKey.saving_database);
|
||||||
@ -95,7 +96,7 @@ namespace keepass2android
|
|||||||
//no = overwrite
|
//no = overwrite
|
||||||
(sender, args) =>
|
(sender, args) =>
|
||||||
{
|
{
|
||||||
RunInWorkerThread( () =>
|
RunInWorkerThread(() =>
|
||||||
{
|
{
|
||||||
PerformSaveWithoutCheck(fileStorage, ioc);
|
PerformSaveWithoutCheck(fileStorage, ioc);
|
||||||
Finish(true);
|
Finish(true);
|
||||||
@ -115,7 +116,9 @@ namespace keepass2android
|
|||||||
Finish(true);
|
Finish(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch (Exception e) {
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
/* TODO KPDesktop:
|
/* TODO KPDesktop:
|
||||||
* catch(Exception exSave)
|
* catch(Exception exSave)
|
||||||
{
|
{
|
||||||
@ -123,12 +126,15 @@ namespace keepass2android
|
|||||||
bSuccess = false;
|
bSuccess = false;
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
Kp2aLog.Log("Error while saving: "+e.ToString());
|
Kp2aLog.Log("Error while saving: " + e.ToString());
|
||||||
Finish (false, e.Message);
|
Finish(false, e.Message);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Finish(true);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user