Small bugfixes

This commit is contained in:
Nicolas Mailloux 2022-03-03 22:52:29 -05:00
parent a9929fc87f
commit 1671f78e5b
3 changed files with 4 additions and 3 deletions

View file

@ -128,7 +128,7 @@ generalDialog::generalDialog(QWidget *parent) :
else if(global::usbms::usbmsDialog == true) {
usbmsDialog = true;
ui->okBtn->setText("Connect");
ui->cancelBtn->setText("Cancel");
ui->cancelBtn->setText("Not now");
ui->bodyLabel->setText("<font face='u001'>Do you want to connect your device to a computer to manage books</font><font face='Inter'>?</font>");
ui->headerLabel->setText("USB cable connected");
QTimer::singleShot(50, this, SLOT(adjust_size()));

View file

@ -268,7 +268,7 @@
<item row="1" column="0">
<widget class="QLabel" name="bodyLabel">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>

View file

@ -350,7 +350,6 @@ MainWindow::MainWindow(QWidget *parent)
if(checkconfig(".config/18-encrypted_storage/status") == true) {
QDir encfsDropboxDir("/mnt/onboard/onboard/encfs-dropbox");
if(!encfsDropboxDir.isEmpty()) {
global::usbms::showUsbmsDialog = false;
QTimer::singleShot(1000, this, SLOT(openEncfsRepackDialog()));
}
}
@ -1076,6 +1075,8 @@ void MainWindow::checkForUpdate() {
void MainWindow::openEncfsRepackDialog() {
global::encfs::repackDialog = true;
global::usbms::showUsbmsDialog = false;
global::usbms::usbmsDialog = false;
generalDialogWindow = new generalDialog(this);
generalDialogWindow->setAttribute(Qt::WA_DeleteOnClose);
}