mirror of
https://github.com/Pixelplanet/Pixel-VR-Player.git
synced 2026-10-23 23:02:10 +02:00
Model darker matte + re-enable status screen node; wider panels/text; download yields SMB lock (responsive browser); drop post-completion status line
This commit is contained in:
1 parent
c9dc24293f
commit
60b23fd8f6
4 files changed
+19
-17
No files matched your search
+6
-5
@@ -533,9 +533,10 @@ int App::run() {
|
||||
downloadToast_ = nowT + std::chrono::seconds(10);
|
||||
}
|
||||
const bool dlRecent = browser_.downloadActive() || nowT < downloadToast_;
|
||||
const std::string dlLine =
|
||||
browser_.downloadActive() ? downloadToastText_ : browser_.status();
|
||||
renderer_.setDownloadStatus(!browser_.isOpen() && dlRecent, dlLine);
|
||||
// Head-locked line only while a download is actually running; the
|
||||
// completion is shown by the Downloads window / green button badge.
|
||||
renderer_.setDownloadStatus(!browser_.isOpen() && browser_.downloadActive(),
|
||||
browser_.downloadText());
|
||||
renderer_.setDownloadsBadge(browser_.downloadActive(),
|
||||
!browser_.downloadActive() &&
|
||||
browser_.hasDownloads() && dlRecent);
|
||||
@@ -578,10 +579,10 @@ int App::run() {
|
||||
rows.reserve(browser_.entries().size());
|
||||
for (const auto& e : browser_.entries()) {
|
||||
std::string name = e.label;
|
||||
if (name.size() > 32) name = name.substr(0, 31) + "~";
|
||||
if (name.size() > 44) name = name.substr(0, 43) + "~";
|
||||
std::string row = name;
|
||||
if (!e.detail.empty()) {
|
||||
while (row.size() < 36) row += ' ';
|
||||
while (row.size() < 50) row += ' ';
|
||||
row += e.detail;
|
||||
}
|
||||
rows.push_back(std::move(row));
|
||||
|
||||
Reference in new issue
Block a user