diff --git a/main.qml b/main.qml index 31450032..613058f2 100644 --- a/main.qml +++ b/main.qml @@ -1394,6 +1394,8 @@ ApplicationWindow { property bool allow_p2pool_mining : false property bool allowRemoteNodeMining : false property bool miningIgnoreBattery : true + property int miningModeSelected: 0 + property int chainDropdownSelected: 0 property var nettype: NetworkType.MAINNET property int restore_height : 0 property bool is_trusted_daemon : false // TODO: drop after v0.17.2.0 release diff --git a/pages/Mining.qml b/pages/Mining.qml index 68aeffec..d29c5883 100644 --- a/pages/Mining.qml +++ b/pages/Mining.qml @@ -121,10 +121,11 @@ Rectangle { Layout.maximumWidth: 200 id: miningModeDropdown visible: true - currentIndex: 0 + currentIndex: persistentSettings.miningModeSelected dataModel: miningModeModel onChanged: { persistentSettings.allow_p2pool_mining = miningModeDropdown.currentIndex === 1; + persistentSettings.miningModeSelected = miningModeDropdown.currentIndex; walletManager.stopMining(); p2poolManager.exit(); } @@ -423,8 +424,9 @@ Rectangle { Layout.maximumWidth: 200 id: chainDropdown visible: persistentSettings.allow_p2pool_mining - currentIndex: 0 + currentIndex: persistentSettings.chainDropdownSelected dataModel: chainModel + onChanged: persistentSettings.chainDropdownSelected = chainDropdown.currentIndex; } }