mirror of
				https://git.wownero.com/wowlet/wowlet.git
				synced 2024-08-15 01:03:14 +00:00 
			
		
		
		
	XMRig: don't disable mining on Tails
This commit is contained in:
		
							parent
							
								
									841739cee9
								
							
						
					
					
						commit
						474ee2100c
					
				
					 2 changed files with 3 additions and 8 deletions
				
			
		| 
						 | 
					@ -154,7 +154,6 @@ AppContext::AppContext(QCommandLineParser *cmdargs) {
 | 
				
			||||||
    // XMRig
 | 
					    // XMRig
 | 
				
			||||||
#ifdef HAS_XMRIG
 | 
					#ifdef HAS_XMRIG
 | 
				
			||||||
    this->XMRig = new XmRig(this->configDirectory, this);
 | 
					    this->XMRig = new XmRig(this->configDirectory, this);
 | 
				
			||||||
    if(!this->isTails)
 | 
					 | 
				
			||||||
    this->XMRig->prepare();
 | 
					    this->XMRig->prepare();
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -85,11 +85,7 @@ XMRigWidget::XMRigWidget(AppContext *ctx, QWidget *parent) :
 | 
				
			||||||
        ui->console->appendPlainText("Invalid path to XMRig binary detected. Please reconfigure on the Settings tab.");
 | 
					        ui->console->appendPlainText("Invalid path to XMRig binary detected. Please reconfigure on the Settings tab.");
 | 
				
			||||||
    else
 | 
					    else
 | 
				
			||||||
        ui->console->appendPlainText(QString("XMRig path set to %1").arg(path));
 | 
					        ui->console->appendPlainText(QString("XMRig path set to %1").arg(path));
 | 
				
			||||||
    if(m_ctx->isTails) {
 | 
					
 | 
				
			||||||
        ui->console->appendPlainText("Mining not available on Tails.");
 | 
					 | 
				
			||||||
        ui->btn_start->setEnabled(false);
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    else
 | 
					 | 
				
			||||||
    ui->console->appendPlainText("Ready to mine.");
 | 
					    ui->console->appendPlainText("Ready to mine.");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // username/password
 | 
					    // username/password
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue