limit fs hash to a single file.
This commit is contained in:
@@ -676,6 +676,7 @@ FsView::FsView(Menu* menu, const fs::FsPath& path, const FsEntry& entry, ViewSid
|
||||
}));
|
||||
}
|
||||
|
||||
if (IsSd() && m_entries_current.size() && !m_selected_count && GetEntry().IsFile()) {
|
||||
options->Add(std::make_shared<SidebarEntryCallback>("Hash"_i18n, [this](){
|
||||
auto options = std::make_shared<Sidebar>("Hash Options"_i18n, Sidebar::Side::RIGHT);
|
||||
ON_SCOPE_EXIT(App::Push(options));
|
||||
@@ -693,6 +694,7 @@ FsView::FsView(Menu* menu, const fs::FsPath& path, const FsEntry& entry, ViewSid
|
||||
DisplayHash(hash::Type::Sha256);
|
||||
}));
|
||||
}));
|
||||
}
|
||||
|
||||
options->Add(std::make_shared<SidebarEntryBool>("Ignore read only"_i18n, m_menu->m_ignore_read_only.Get(), [this](bool& v_out){
|
||||
m_menu->m_ignore_read_only.Set(v_out);
|
||||
|
||||
Reference in New Issue
Block a user