mirror of
https://github.com/CachyOS/New-Cli-Installer.git
synced 2025-01-23 14:32:22 +08:00
🚧 tui: fix compilation
This commit is contained in:
parent
616299ece4
commit
c275c0f0bd
@ -1053,7 +1053,7 @@ void make_swap() noexcept {
|
||||
return;
|
||||
}
|
||||
|
||||
while (!gucc::utils::exec_checked(fmt::format(FMT_COMPILE("echo '{}' | grep -q 'M\\|G'")))) {
|
||||
while (!gucc::utils::exec_checked(fmt::format(FMT_COMPILE("echo '{}' | grep -q 'M\\|G'"), value))) {
|
||||
detail::msgbox_widget(fmt::format(FMT_COMPILE("\n{} Error: M = MB, G = GB\n"), sel_swap_file));
|
||||
value = fmt::format(FMT_COMPILE("{}M"), total_memory);
|
||||
if (!detail::inputbox_widget(value, "\nM = MB, G = GB\n", size(ftxui::HEIGHT, ftxui::LESS_THAN, 9) | size(ftxui::WIDTH, ftxui::LESS_THAN, 30))) {
|
||||
|
Loading…
Reference in New Issue
Block a user