mirror of
https://github.com/Dark98/threeSD.git
synced 2026-07-02 16:49:04 +00:00
Fixed minor UI errors
This commit is contained in:
@@ -79,7 +79,6 @@ public:
|
||||
std::size_t items_read = file.ReadArray(data, length);
|
||||
|
||||
if (IsGood()) {
|
||||
LOG_CRITICAL(Core, "Decrypting data...");
|
||||
DecryptData(reinterpret_cast<u8*>(data), sizeof(T) * length);
|
||||
}
|
||||
|
||||
|
||||
@@ -154,7 +154,6 @@ void ImportDialog::InsertTopLevelItem(const QString& text, QPixmap icon) {
|
||||
checkBox->setProperty("previousState", static_cast<int>(Qt::Unchecked));
|
||||
|
||||
auto* item = new QTreeWidgetItem;
|
||||
item->setFirstColumnSpanned(true);
|
||||
ui->main->invisibleRootItem()->addChild(item);
|
||||
|
||||
connect(checkBox, &QCheckBox::stateChanged, [this, checkBox, item](int state) {
|
||||
@@ -183,6 +182,7 @@ void ImportDialog::InsertTopLevelItem(const QString& text, QPixmap icon) {
|
||||
});
|
||||
|
||||
ui->main->setItemWidget(item, 0, checkBox);
|
||||
item->setFirstColumnSpanned(true);
|
||||
}
|
||||
|
||||
void ImportDialog::InsertSecondLevelItem(std::size_t row, const Core::ContentSpecifier& content,
|
||||
@@ -487,7 +487,7 @@ void ImportDialog::StartImporting() {
|
||||
});
|
||||
connect(job, &ImportJob::Completed, this, [this, dialog] {
|
||||
dialog->setValue(dialog->maximum());
|
||||
RepopulateContent();
|
||||
RelistContent();
|
||||
});
|
||||
connect(dialog, &QProgressDialog::canceled, this, [this, dialog, job] {
|
||||
// Add yet-another-ProgressDialog to indicate cancel progress
|
||||
|
||||
Reference in New Issue
Block a user