Public Access
Updates: the Debug Build message fits on one line of the screen
"A Debug Build keeps its console: update it from your PC" ran off the edge of the release page. It now reads "Debug Build: update from the PC". Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EhqxQ49eCju4CzKYNjZzwT
This commit is contained in:
@@ -80,7 +80,7 @@ bool FirmwarePage::installable(std::string& why) const {
|
|||||||
std::string running = update_.runningVersion();
|
std::string running = update_.runningVersion();
|
||||||
if (!shown_.usable()) why = "Nothing to install in it";
|
if (!shown_.usable()) why = "Nothing to install in it";
|
||||||
else if (!release::versionNewer(shown_.tag, running) && !versionOlder(shown_.tag, running)) why = "That's the version running";
|
else if (!release::versionNewer(shown_.tag, running) && !versionOlder(shown_.tag, running)) why = "That's the version running";
|
||||||
else if (release::isDebugBuild(running)) why = "A Debug Build keeps its console: update it from your PC";
|
else if (release::isDebugBuild(running)) why = "Debug Build: update from the PC"; // it keeps its console (Q171)
|
||||||
else if (wifi_.state() != WifiController::State::Connected) why = "Not connected to Wi-Fi";
|
else if (wifi_.state() != WifiController::State::Connected) why = "Not connected to Wi-Fi";
|
||||||
else return true;
|
else return true;
|
||||||
return false;
|
return false;
|
||||||
@@ -203,7 +203,7 @@ void FirmwarePage::drawRelease(Canvas& c) {
|
|||||||
c.setFont(&fonts::small);
|
c.setFont(&fonts::small);
|
||||||
c.setTextDatum(top_left);
|
c.setTextDatum(top_left);
|
||||||
c.setTextColor(theme::kMuted);
|
c.setTextColor(theme::kMuted);
|
||||||
c.drawString(ok ? "Enter: install c: check again" : (why + " c: check again").c_str(), 4, area.y + area.h - 9);
|
c.drawString(ok ? "Enter: install c: check again" : (why + " c: check").c_str(), 4, area.y + area.h - 9);
|
||||||
}
|
}
|
||||||
|
|
||||||
void FirmwarePage::drawOlder(Canvas& c) {
|
void FirmwarePage::drawOlder(Canvas& c) {
|
||||||
|
|||||||
@@ -217,7 +217,7 @@ std::string UpdateService::failedVersion() const {
|
|||||||
|
|
||||||
std::string UpdateService::requestInstall(const std::string& tag, bool force) {
|
std::string UpdateService::requestInstall(const std::string& tag, bool force) {
|
||||||
if (phase_ != Phase::Idle || giteaBusy()) return "Busy with something else";
|
if (phase_ != Phase::Idle || giteaBusy()) return "Busy with something else";
|
||||||
if (!force && release::isDebugBuild(runningVersion())) return "A Debug Build keeps its console: update it from your PC";
|
if (!force && release::isDebugBuild(runningVersion())) return "Debug Build: update from the PC"; // short: it is drawn in one line at the screen's foot
|
||||||
if (wifi_.state() != WifiController::State::Connected) return "No Wi-Fi";
|
if (wifi_.state() != WifiController::State::Connected) return "No Wi-Fi";
|
||||||
release::Release r;
|
release::Release r;
|
||||||
if (!gitea_.find(tag, r)) return "Look for releases first";
|
if (!gitea_.find(tag, r)) return "Look for releases first";
|
||||||
|
|||||||
Reference in New Issue
Block a user