Skip to content
This repository was archived by the owner on Dec 26, 2020. It is now read-only.

Commit 489acac

Browse files
committed
Bug fixes & example image
1 parent 2bcb94e commit 489acac

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

example.png

22.5 KB
Loading

window.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ void Window::drawBackground()
9292
QFile file("/home/umbrel/umbrel/tor/data/web/hostname");
9393
file.open(QIODevice::ReadOnly);
9494
QTextStream s(&file);
95-
QString torAddress = s.readAll();
95+
QString torAddress = "http://" + s.readAll();
9696

9797
// Get IP
9898
QString ipAddress;
@@ -132,9 +132,9 @@ void Window::drawBackground()
132132
painter3.translate(0, 40);
133133
painter3.drawText(this->geometry(), Qt::AlignHCenter, "http://umbrel.local");
134134
painter3.translate(0, 40);
135-
painter3.drawText(this->geometry(), Qt::AlignHCenter, "http://" + ipAddress);
135+
painter3.drawText(this->geometry(), Qt::AlignHCenter, "http://" + ipAddress);
136136
painter3.translate(0, 40);
137-
painter3.drawText(this->geometry(), Qt::AlignHCenter, "http://" + torAddress);
137+
painter3.drawText(this->geometry(), Qt::AlignHCenter, torAddress);
138138
painter3.end();
139139
}
140140

0 commit comments

Comments
 (0)