mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-15 03:59:15 +08:00
Fix #762
This commit is contained in:
parent
e7879384b1
commit
3f3a34f788
@ -37,6 +37,7 @@ namespace Wox.Infrastructure.Storage
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
stream.Close();
|
||||||
LoadDefault();
|
LoadDefault();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -64,11 +65,13 @@ namespace Wox.Infrastructure.Storage
|
|||||||
catch (SerializationException e)
|
catch (SerializationException e)
|
||||||
{
|
{
|
||||||
Log.Exception(e);
|
Log.Exception(e);
|
||||||
|
stream.Close();
|
||||||
LoadDefault();
|
LoadDefault();
|
||||||
}
|
}
|
||||||
catch (InvalidCastException e)
|
catch (InvalidCastException e)
|
||||||
{
|
{
|
||||||
Log.Exception(e);
|
Log.Exception(e);
|
||||||
|
stream.Close();
|
||||||
LoadDefault();
|
LoadDefault();
|
||||||
}
|
}
|
||||||
finally
|
finally
|
||||||
|
Loading…
Reference in New Issue
Block a user