tasks/backup.cpp fixes.

This commit is contained in:
J-D-K
2025-10-10 13:49:05 -04:00
parent 9c98aabdd4
commit 17410fd8a9
13 changed files with 36 additions and 43 deletions

View File

@@ -193,7 +193,7 @@ void BackupMenuState::save_data_check()
void BackupMenuState::initialize_remote_storage()
{
remote::Storage *remote = remote::get_remote_storage();
if (error::is_null(remote)) { return; }
if (!remote) { return; }
const bool supportsUtf8 = remote->supports_utf8();
const std::string_view remoteTitle = supportsUtf8 ? m_titleInfo->get_title() : m_titleInfo->get_path_safe_title();