mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-08-03 19:37:45 -04:00

- For each instance, a custom (shared) screenshots/worlds/resourcepacks folder can be set - Remove ability to set shared folders for all instances (Might add later in different form) Signed-off-by: Naomi <103967@gmail.com>
27 lines
532 B
C++
27 lines
532 B
C++
#pragma once
|
|
|
|
#include <QWidget>
|
|
|
|
namespace Ui {
|
|
class SharedFolderWidget;
|
|
}
|
|
|
|
class SharedFolderWidget : public QWidget {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit SharedFolderWidget(QWidget* parent = 0);
|
|
virtual ~SharedFolderWidget();
|
|
void initialize(bool enabled, const QString& path, const QString& label = "");
|
|
|
|
bool isEnabled() const;
|
|
QString getPath() const;
|
|
|
|
private slots:
|
|
void on_enabledCheckBox_toggled(bool checked);
|
|
void on_pathBrowseBtn_clicked();
|
|
|
|
private:
|
|
Ui::SharedFolderWidget* ui;
|
|
};
|