mirror of
https://github.com/CachyOS/New-Cli-Installer.git
synced 2025-01-23 14:32:22 +08:00
👷 tui: add mirrors ranking
This commit is contained in:
parent
b96d645358
commit
5924e59292
10
src/tui.cpp
10
src/tui.cpp
@ -2014,7 +2014,7 @@ void mount_partitions() noexcept {
|
||||
void configure_mirrorlist() noexcept {
|
||||
const std::vector<std::string> menu_entries = {
|
||||
"Edit Pacman Configuration",
|
||||
//"Rank mirrors by speed",
|
||||
"Rank mirrors",
|
||||
"Back",
|
||||
};
|
||||
|
||||
@ -2027,9 +2027,11 @@ void configure_mirrorlist() noexcept {
|
||||
tui::edit_pacman_conf();
|
||||
screen.Resume();
|
||||
break;
|
||||
/*case 1:
|
||||
SPDLOG_ERROR("Implement me!");
|
||||
break;*/
|
||||
case 1:
|
||||
screen.Suspend();
|
||||
utils::exec("cachyos-rate-mirrors"sv, true);
|
||||
screen.Resume();
|
||||
break;
|
||||
default:
|
||||
screen.ExitLoopClosure()();
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user