mirror of
https://github.com/crskycode/GARbro.git
synced 2024-12-27 21:34:14 +08:00
(ArchiveViewModel): allowed empty archives.
This commit is contained in:
parent
a4570fdb04
commit
ff4dba2bd2
@ -141,12 +141,14 @@ namespace GARbro.GUI
|
||||
{
|
||||
IEnumerable<Entry> dir = Source;
|
||||
if (!string.IsNullOrEmpty (root_path))
|
||||
{
|
||||
dir = from entry in dir
|
||||
where entry.Name.StartsWith (root_path+m_delimiter)
|
||||
select entry;
|
||||
if (!dir.Any())
|
||||
{
|
||||
throw new DirectoryNotFoundException (string.Format ("{1}: {0}", guiStrings.MsgDirectoryNotFound, root_path));
|
||||
if (!dir.Any())
|
||||
{
|
||||
throw new DirectoryNotFoundException (string.Format ("{1}: {0}", guiStrings.MsgDirectoryNotFound, root_path));
|
||||
}
|
||||
}
|
||||
m_suppress_notification = true;
|
||||
try
|
||||
|
Loading…
x
Reference in New Issue
Block a user