支持内核卸载

This commit is contained in:
2024-04-25 20:38:57 +08:00
parent 8a362b0548
commit aab5b67836
9 changed files with 72 additions and 6 deletions

View File

@@ -14,13 +14,20 @@ class KernelInstaller : public QMainWindow
Q_OBJECT
public:
explicit KernelInstaller(QStringList kernelList, QWidget *parent = nullptr);
enum Option {
Install,
Remove
};
explicit KernelInstaller(Option option, QStringList kernelList, QWidget *parent = nullptr);
~KernelInstaller();
signals:
void InstallFinished(int status);
private:
Option runOption;
Ui::KernelInstaller *ui;
QTermWidget *terminal;
QStringList kernelList;