mirror of
https://github.com/crskycode/GARbro.git
synced 2024-11-27 07:34:00 +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…
Reference in New Issue
Block a user