🚧 tui: fix compilation

This commit is contained in:
Vladislav Nepogodin 2024-07-14 02:50:42 +04:00
parent 616299ece4
commit c275c0f0bd
No known key found for this signature in database
GPG Key ID: B62C3D10C54D5DA9

View File

@ -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))) {