FileManager: Remove duplicate log statement

Now that warnln() also outputs to the debug console, this would print
the error twice.
This commit is contained in:
Sam Atkins 2023-07-13 15:55:57 +01:00 committed by Jelle Raaijmakers
parent d48c68cf3f
commit e0b7717a6a

View file

@ -408,10 +408,8 @@ bool DirectoryView::open(DeprecatedString const& path)
return false;
auto real_path = error_or_real_path.release_value();
if (auto result = Core::System::chdir(real_path); result.is_error()) {
dbgln("Failed to open '{}': {}", real_path, result.error());
if (auto result = Core::System::chdir(real_path); result.is_error())
warnln("Failed to open '{}': {}", real_path, result.error());
}
if (model().root_path() == real_path.to_deprecated_string()) {
refresh();