| 2699 | } |
| 2700 | |
| 2701 | auto BootEntry::formatDevicePath(bool refresh) const -> QString |
| 2702 | { |
| 2703 | if(device_path.empty()) |
| 2704 | return {}; |
| 2705 | |
| 2706 | if(device_path_str.size() && !refresh) |
| 2707 | return device_path_str; |
| 2708 | |
| 2709 | device_path_str.clear(); |
| 2710 | for(const auto &file_path: device_path) |
| 2711 | { |
| 2712 | if(!device_path_str.isEmpty()) |
| 2713 | device_path_str += "/"; |
| 2714 | |
| 2715 | device_path_str += std::visit([refresh](const auto &obj) |
| 2716 | { return obj.toString(refresh); }, |
| 2717 | file_path); |
| 2718 | } |
| 2719 | |
| 2720 | return device_path_str; |
| 2721 | } |
| 2722 | |
| 2723 | QString BootEntry::getTitle() const |
| 2724 | { |