Truncate the headline in config menu

This commit is contained in:
Maschell
2022-09-19 21:47:09 +02:00
parent 80d577b1dd
commit f6d8e850d2
3 changed files with 15 additions and 3 deletions

View File

@@ -50,8 +50,9 @@ std::string string_format(const std::string &format, Args... args) {
class StringTools {
public:
static int32_t strtokcmp(const char *string, const char *compare, const char *separator);
static std::string truncate(const std::string &str, size_t width, bool show_ellipsis = true);
static int32_t strtokcmp(const char *string, const char *compare, const char *separator);
static const char *FullpathToFilename(const char *path) {
if (!path)