mirror of
https://gitee.com/gfdgd-xi/deep-wine-runner
synced 2025-12-14 02:52:03 +08:00
初步多线程
This commit is contained in:
@@ -17,7 +17,8 @@
|
||||
#include <QFile>
|
||||
#include <QProcess>
|
||||
using namespace std;
|
||||
|
||||
QComboBox *MainWindow::e1;
|
||||
QMap<QString, QString> MainWindow::setting;
|
||||
MainWindow::MainWindow(){
|
||||
/*********
|
||||
* 设置变量
|
||||
@@ -198,6 +199,24 @@ MainWindow::MainWindow(){
|
||||
if(o1->currentText() == ""){
|
||||
o1->addItem("没有识别到任何Wine,请在菜单栏“程序”安装Wine或安装任意Wine应用");
|
||||
}
|
||||
QObject::connect(button3, &QPushButton::clicked, [&](){
|
||||
Runexebutton_threading *thread = new Runexebutton_threading();
|
||||
thread->start();
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
void MainWindow::Runexebutton_threading::run(){
|
||||
if(e1->currentText() == ""){
|
||||
QString wineBottlePath = setting.value("DefultBotton");
|
||||
}
|
||||
else{
|
||||
QString wineBottlePath = e1->currentText();
|
||||
}
|
||||
QString option = "";
|
||||
if(setting.value("Architecture") != "Auto"){
|
||||
QString option = option + "WINEARCH=" + setting.value("Architecture") + " ";
|
||||
}
|
||||
}
|
||||
|
||||
void MainWindow::DisableButton(bool things){
|
||||
|
||||
Reference in New Issue
Block a user