mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-01 11:32:21 +08:00
UI: fix fcc.html when using QRC
old-commit-hash: 84d5adedd843d4e48690ff521cd7a51b71644dfc
This commit is contained in:
@@ -147,7 +147,7 @@ DevicePanel::DevicePanel(QWidget* parent) : ListWidget(parent) {
|
||||
if (Hardware::TICI()) {
|
||||
regulatoryBtn = new ButtonControl("Regulatory", "VIEW", "");
|
||||
connect(regulatoryBtn, &ButtonControl::clicked, [=]() {
|
||||
const std::string txt = util::read_file(ASSET_PATH.toStdString() + "/offroad/fcc.html");
|
||||
const std::string txt = util::read_file("../assets/offroad/fcc.html");
|
||||
RichTextDialog::alert(QString::fromStdString(txt), this);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user