Fix Wifi UI not working on PC (#2597)

old-commit-hash: 3a7fcc62fb
commatwo_master
grekiki 4 years ago committed by GitHub
parent 4be6d905dc
commit 4603a9b9d3
  1. 6
      selfdrive/ui/qt/window.cc
  2. 1
      tools/ubuntu_setup.sh

@ -48,6 +48,9 @@ MainWindow::MainWindow(QWidget *parent) : QWidget(parent) {
#ifdef QCOM2 #ifdef QCOM2
set_core_affinity(7); set_core_affinity(7);
// TODO: this is needed to make first page not squished, why?
main_layout->setSizeConstraint(QLayout::SetMinimumSize);
#endif #endif
glWindow = new GLWindow(this); glWindow = new GLWindow(this);
@ -72,9 +75,6 @@ MainWindow::MainWindow(QWidget *parent) : QWidget(parent) {
QObject::connect(onboardingWindow, SIGNAL(onboardingDone()), this, SLOT(closeSettings())); QObject::connect(onboardingWindow, SIGNAL(onboardingDone()), this, SLOT(closeSettings()));
onboardingWindow->updateActiveScreen(); onboardingWindow->updateActiveScreen();
// TODO: this is needed to make first page not squished, why?
main_layout->setSizeConstraint(QLayout::SetMinimumSize);
setStyleSheet(R"( setStyleSheet(R"(
* { * {
color: white; color: white;

@ -6,6 +6,7 @@ sudo apt-get update && sudo apt-get install -y \
build-essential \ build-essential \
bzip2 \ bzip2 \
capnproto \ capnproto \
cppcheck \
libcapnp-dev \ libcapnp-dev \
clang \ clang \
cmake \ cmake \

Loading…
Cancel
Save