Refactor batch installing files

Key issues fixed:
- Progress dialog showing up as white/hanging/getting stuck/unresponsive.

Key changes:
- Progress dialog now shows progress as a function of all files instead of per nca within a file.
- Overwrite existing files will overwrite all files in the selection.
This commit is contained in:
Morph
2020-07-01 16:15:57 -04:00
parent 4c269e5ced
commit 7f4d96d873
4 changed files with 242 additions and 200 deletions

View File

@ -20,8 +20,9 @@ public:
explicit InstallDialog(QWidget* parent, const QStringList& files);
~InstallDialog() override;
QStringList GetFilenames() const;
QStringList GetFiles() const;
bool ShouldOverwriteFiles() const;
int GetMinimumWidth() const;
private:
QListWidget* file_list;
@ -32,4 +33,4 @@ private:
QLabel* description;
QCheckBox* overwrite_files;
QDialogButtonBox* buttons;
};
};