Implement persistence by storing shortcut in settings

Signed-off-by: Yihe Li <winmikedows@hotmail.com>
This commit is contained in:
Yihe Li
2025-06-01 14:16:40 +08:00
parent d3f337d6ef
commit 7c3a810d3d
4 changed files with 52 additions and 15 deletions

View File

@@ -1040,6 +1040,10 @@ QString MinecraftInstance::getStatusbarDescription()
.arg(Time::prettifyDuration(totalTimePlayed(), APPLICATION->settings()->get("ShowGameTimeWithoutDays").toBool())));
}
}
auto currentShortcuts = shortcuts();
if (!currentShortcuts.isEmpty()) {
description.append(tr(", %n shortcut(s) registered", "", currentShortcuts.size()));
}
if (hasCrashed()) {
description.append(tr(", has crashed."));
}