-
xmr-pr
JeremyRand opened pull request #3364: Makefile: Add ppc64le target
-
xmr-pr
-
trevisol
hello
-
trevisol
how to insert this function for enabling mining without clicking
-
trevisol
walletManager.startMining(appWindow.currentWallet.address(0, 0), soloMinerThreadsLine.text, persistentSettings.allow_background_mining, persistentSettings.miningIgnoreBattery)
-
moneromooo
Is there anthing like "onWalletLoaded" or similar function ?
-
selsta
-
trevisol
so is enough to insert that on main.qml:538
-
selsta
maybe
-
trevisol
ok i'll try it right now
-
trevisol
did i insert it right or no
paste.debian.net/1190245
-
selsta
most likely no
-
trevisol
?
-
selsta
just hard code the values you want
-
trevisol
how
-
selsta
there is no soloMinerThreadsLine.text in main.qml
-
selsta
so just write the amount of threads you want instead
-
moneromooo
You probably want to replace appWindow.currentWallet with wallet too. And add "if (wallet.status == Wallet.Status_Ok)" right before it.
-
moneromooo
(judging from the code you pasted)
-
trevisol
-
moneromooo
if (wallet.status == Wallet.Status_Ok) { walletManager.startMining(wallet.address(0, 0), 1, true, false); }
-
moneromooo
My best guess.
-
trevisol
ah ok
-
moneromooo
If it complains about true and false, replace by 0 and 1, respectively.
-
moneromooo
er, 1 and 0.
-
trevisol
ok but about miningIgnoreBattery
-
trevisol
if is on latptop with battery?
-
moneromooo
If you're on battery and still want it, replace the last false with true.
-
trevisol
ok thnx
-
trevisol
failed because we need to insert that function after daemon is connected
-
trevisol
how to find the line that make sure daemon is connected
-
trevisol
the function started but failed because daemon was not connected yet
-
selsta
look through main.qml
-
trevisol
function onDaemonStarted()
-
trevisol
this one?
-
moneromooo
The daemon mines, not the wallet. So the daemon has to be connected if you want to mine that way.
-
trevisol
yes so we need to start daemon and after run that function
-
trevisol
daemonManager.start(flags, persistentSettings.nettype, persistentSettings.blockchainDataDir, bootstrapNodeAddress, noSync);
-
trevisol
not sure how daemon start
-
moneromooo
How about adding, in onDaemonStarted: if (appWindow.currentWallet) walletManager.startMining(appWindow.currentWallet.address(0, 0), 1, true, false);
-
trevisol
i'll try it right now
-
moneromooo
I assume appWindow.currentWallet will work as true/false... might need if (appWindow.currentWallet != null) or something like that.
-
xmr-pr
mrx23dot opened issue #3365: Associate 'monero:' URI in OS
-
xmr-pr
-
selsta
ErCiccione: please take a look at
monero-project/monero-gui #3363
-
selsta
.merge+ 3361
-
xmr-pr
Added
-
selsta
.merge+ 3363
-
xmr-pr
Added