Linux tabs restore
This commit is contained in:
@@ -48,7 +48,14 @@ namespace FileTime.Avalonia.Application
|
||||
{
|
||||
if (value != null)
|
||||
{
|
||||
SetSelectedItemAsync(value, true).Wait();
|
||||
try
|
||||
{
|
||||
SetSelectedItemAsync(value, true).Wait();
|
||||
}
|
||||
catch
|
||||
{
|
||||
//TODO: Debug, linux start after restore 3 tabs
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -58,7 +58,7 @@ namespace FileTime.Avalonia.Services
|
||||
catch { }
|
||||
}
|
||||
|
||||
public void SaveStatesAsync()
|
||||
public void SaveStates()
|
||||
{
|
||||
var state = new PersistenceRoot
|
||||
{
|
||||
|
||||
@@ -114,7 +114,7 @@ namespace FileTime.Avalonia.Views
|
||||
{
|
||||
try
|
||||
{
|
||||
ViewModel?.StatePersistence.SaveStatesAsync();
|
||||
ViewModel?.StatePersistence.SaveStates();
|
||||
}
|
||||
catch { }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user