mirror of
https://github.com/CachyOS/New-Cli-Installer.git
synced 2025-02-02 22:07:13 +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 {
|
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;
|
||||||
|
Loading…
Reference in New Issue
Block a user