mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-09 22:06:25 +00:00
b3f8af8e06
Qml code referring to the old code base commented out, but not deleted, due to easier refactoring the rest of the app.
48 lines
1.3 KiB
QML
48 lines
1.3 KiB
QML
import QtQuick 2.13
|
|
import QtQuick.Controls 2.13
|
|
import QtQuick.Layouts 1.13
|
|
|
|
import utils 1.0
|
|
|
|
import shared.popups 1.0
|
|
import shared.controls 1.0
|
|
|
|
RadioButtonSelector {
|
|
id: root
|
|
|
|
property string network: ""
|
|
property string networkName: ""
|
|
property string newNetwork: ""
|
|
|
|
title: networkName == "" ? Utils.getNetworkName(network) : networkName
|
|
|
|
onCheckedChanged: {
|
|
if (checked) {
|
|
// Not Refactored Yet
|
|
// if (profileModel.network.current === root.network) return;
|
|
// root.newNetwork = root.network;
|
|
// Global.openPopup(confirmDialogComponent)
|
|
}
|
|
}
|
|
|
|
Component {
|
|
id: confirmDialogComponent
|
|
ConfirmationDialog {
|
|
id: confirmDialog
|
|
//% "Warning!"
|
|
header.title: qsTrId("close-app-title")
|
|
//% "The account will be logged out. When you unlock it again, the selected network will be used"
|
|
confirmationText: qsTrId("logout-app-content")
|
|
onConfirmButtonClicked: {
|
|
// Not Refactored Yet
|
|
// profileModel.network.current = root.newNetwork;
|
|
}
|
|
onClosed: {
|
|
// Not Refactored Yet
|
|
// profileModel.network.triggerNetworkChange()
|
|
destroy()
|
|
}
|
|
}
|
|
}
|
|
}
|