👷 tui: add mirrors ranking

This commit is contained in:
Vladislav Nepogodin 2024-05-01 13:04:33 +04:00
parent b96d645358
commit 5924e59292
No known key found for this signature in database
GPG Key ID: B62C3D10C54D5DA9

View File

@ -2014,7 +2014,7 @@ void mount_partitions() noexcept {
void configure_mirrorlist() noexcept { void configure_mirrorlist() noexcept {
const std::vector<std::string> menu_entries = { const std::vector<std::string> menu_entries = {
"Edit Pacman Configuration", "Edit Pacman Configuration",
//"Rank mirrors by speed", "Rank mirrors",
"Back", "Back",
}; };
@ -2027,9 +2027,11 @@ void configure_mirrorlist() noexcept {
tui::edit_pacman_conf(); tui::edit_pacman_conf();
screen.Resume(); screen.Resume();
break; break;
/*case 1: case 1:
SPDLOG_ERROR("Implement me!"); screen.Suspend();
break;*/ utils::exec("cachyos-rate-mirrors"sv, true);
screen.Resume();
break;
default: default:
screen.ExitLoopClosure()(); screen.ExitLoopClosure()();
break; break;