mirror of
https://github.com/MoreTore/openpilot.git
synced 2026-09-30 19:33:49 +08:00
UI style improvements with improved keyboard (#2710)
* fix spaces and make spacebar dynamically sized
* some spaces and a comment
* more spaces
* const
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 3e466aa528
This commit is contained in:
@@ -25,20 +25,20 @@ int fresh_clone() {
|
||||
|
||||
// Cleanup
|
||||
err = std::system("rm -rf /tmp/openpilot");
|
||||
if(err) return 1;
|
||||
if (err) return 1;
|
||||
err = std::system("rm -rf /data/openpilot");
|
||||
if(err) return 1;
|
||||
if (err) return 1;
|
||||
|
||||
// Clone
|
||||
err = std::system("git clone " GIT_URL " -b " BRANCH " --depth=1 /tmp/openpilot");
|
||||
if(err) return 1;
|
||||
if (err) return 1;
|
||||
err = std::system("cd /tmp/openpilot && git submodule update --init");
|
||||
if(err) return 1;
|
||||
if (err) return 1;
|
||||
err = std::system("cd /tmp/openpilot && git remote set-url origin --push " GIT_SSH_URL);
|
||||
if(err) return 1;
|
||||
if (err) return 1;
|
||||
|
||||
err = std::system("mv /tmp/openpilot /data");
|
||||
if(err) return 1;
|
||||
if (err) return 1;
|
||||
|
||||
return 0;
|
||||
}
|
||||
@@ -56,11 +56,11 @@ int install() {
|
||||
|
||||
std::cout << "Doing fresh clone\n";
|
||||
err = fresh_clone();
|
||||
if(err) return 1;
|
||||
if (err) return 1;
|
||||
|
||||
// Write continue.sh
|
||||
err = std::system("cp /data/openpilot/installer/continue_openpilot.sh " CONTINUE_PATH);
|
||||
if(err == -1) return 1;
|
||||
if (err == -1) return 1;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -76,10 +76,10 @@ QWidget * Setup::network_setup() {
|
||||
|
||||
WifiUI *wifi = new WifiUI(this, 6);
|
||||
main_layout->addWidget(wifi);
|
||||
QObject::connect(wifi, &WifiUI::openKeyboard, this, [=](){
|
||||
QObject::connect(wifi, &WifiUI::openKeyboard, this, [=]() {
|
||||
this->continue_btn->setVisible(false);
|
||||
});
|
||||
QObject::connect(wifi, &WifiUI::closeKeyboard, this, [=](){
|
||||
QObject::connect(wifi, &WifiUI::closeKeyboard, this, [=]() {
|
||||
this->continue_btn->setVisible(true);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user