mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Migrate filesystem panel from Eto.Forms to Avalonia.
This commit is contained in:
@@ -154,6 +154,12 @@ namespace Aaru.Gui.ViewModels
|
||||
DataContext = partitionModel.ViewModel
|
||||
};
|
||||
|
||||
if(value is FileSystemModel fileSystemModel)
|
||||
ContentPanel = new FileSystemPanel
|
||||
{
|
||||
DataContext = fileSystemModel.ViewModel
|
||||
};
|
||||
|
||||
this.RaiseAndSetIfChanged(ref _treeViewSelectedItem, value);
|
||||
}
|
||||
}
|
||||
@@ -464,7 +470,8 @@ namespace Aaru.Gui.ViewModels
|
||||
VolumeName =
|
||||
plugin.XmlFsType.VolumeName is null ? $"{plugin.XmlFsType.Type}"
|
||||
: $"{plugin.XmlFsType.VolumeName} ({plugin.XmlFsType.Type})",
|
||||
Filesystem = plugin, ReadOnlyFilesystem = fsPlugin
|
||||
Filesystem = plugin, ReadOnlyFilesystem = fsPlugin,
|
||||
ViewModel = new FileSystemViewModel(plugin.XmlFsType, information)
|
||||
};
|
||||
|
||||
/* TODO: Trap expanding item
|
||||
@@ -520,7 +527,8 @@ namespace Aaru.Gui.ViewModels
|
||||
{
|
||||
VolumeName = plugin.XmlFsType.VolumeName is null ? $"{plugin.XmlFsType.Type}"
|
||||
: $"{plugin.XmlFsType.VolumeName} ({plugin.XmlFsType.Type})",
|
||||
Filesystem = plugin, ReadOnlyFilesystem = fsPlugin
|
||||
Filesystem = plugin, ReadOnlyFilesystem = fsPlugin,
|
||||
ViewModel = new FileSystemViewModel(plugin.XmlFsType, information)
|
||||
};
|
||||
|
||||
/* TODO: Trap expanding item
|
||||
|
||||
Reference in New Issue
Block a user