mirror of
https://github.com/Quill-OS/quill.git
synced 2024-12-26 23:57:22 -08:00
Delete/Hide libraryButton if device is not WiFi-able
This commit is contained in:
parent
9a309773d6
commit
e310dd14b3
1 changed files with 6 additions and 0 deletions
|
@ -180,6 +180,12 @@ MainWindow::MainWindow(QWidget *parent)
|
|||
|
||||
ui->recentBooksLabel->hide();
|
||||
|
||||
// Deleting/Hiding "Library" button if device is not WiFi-able
|
||||
if(global::device::isWifiAble == false && readFile("/opt/inkbox_device") != "emu\n") {
|
||||
ui->libraryButton->deleteLater();
|
||||
ui->line_10->deleteLater();
|
||||
}
|
||||
|
||||
// Stylesheet
|
||||
QFile stylesheetFile(":/resources/eink.qss");
|
||||
stylesheetFile.open(QFile::ReadOnly);
|
||||
|
|
Loading…
Reference in a new issue