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;
|
IEnumerable<Entry> dir = Source;
|
||||||
if (!string.IsNullOrEmpty (root_path))
|
if (!string.IsNullOrEmpty (root_path))
|
||||||
|
{
|
||||||
dir = from entry in dir
|
dir = from entry in dir
|
||||||
where entry.Name.StartsWith (root_path+m_delimiter)
|
where entry.Name.StartsWith (root_path+m_delimiter)
|
||||||
select entry;
|
select entry;
|
||||||
if (!dir.Any())
|
if (!dir.Any())
|
||||||
{
|
{
|
||||||
throw new DirectoryNotFoundException (string.Format ("{1}: {0}", guiStrings.MsgDirectoryNotFound, root_path));
|
throw new DirectoryNotFoundException (string.Format ("{1}: {0}", guiStrings.MsgDirectoryNotFound, root_path));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
m_suppress_notification = true;
|
m_suppress_notification = true;
|
||||||
try
|
try
|
||||||
|
Loading…
Reference in New Issue
Block a user