Moved the selected resources to one list
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
		| @@ -62,8 +62,8 @@ class ResourceDownloadDialog : public QDialog, public BasePageProvider { | ||||
|     bool selectPage(QString pageId); | ||||
|     ResourcePage* getSelectedPage(); | ||||
|  | ||||
|     void addResource(ModPlatform::IndexedPack&, ModPlatform::IndexedVersion&, bool is_indexed = false); | ||||
|     void removeResource(ModPlatform::IndexedPack&, ModPlatform::IndexedVersion&); | ||||
|     void addResource(ModPlatform::IndexedPack&, ModPlatform::IndexedVersion&); | ||||
|     void removeResource(const QString&); | ||||
|  | ||||
|     const QList<DownloadTaskPtr> getTasks(); | ||||
|     [[nodiscard]] const std::shared_ptr<ResourceFolderModel> getBaseModel() const { return m_base_model; } | ||||
| @@ -79,6 +79,7 @@ class ResourceDownloadDialog : public QDialog, public BasePageProvider { | ||||
|  | ||||
|    protected: | ||||
|     [[nodiscard]] virtual QString geometrySaveKey() const { return ""; } | ||||
|     void setButtonStatus(); | ||||
|  | ||||
|    protected: | ||||
|     const std::shared_ptr<ResourceFolderModel> m_base_model; | ||||
| @@ -88,12 +89,8 @@ class ResourceDownloadDialog : public QDialog, public BasePageProvider { | ||||
|  | ||||
|     QDialogButtonBox m_buttons; | ||||
|     QVBoxLayout m_vertical_layout; | ||||
|  | ||||
|     QHash<QString, DownloadTaskPtr> m_selected; | ||||
| }; | ||||
|  | ||||
|  | ||||
|  | ||||
| class ModDownloadDialog final : public ResourceDownloadDialog { | ||||
|     Q_OBJECT | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Trial97
					Trial97