status-desktop/ui/imports/shared/stores/BIP39_en.qml

18 lines
407 B
QML
Raw Normal View History

import QtQuick 2.13
import StatusQ.Core.Utils 0.1
ListModel {
id: root
Component.onCompleted: {
const words = StringUtils.readTextFile(":/imports/shared/stores/english.txt").split(/\r?\n|\r/);
for (var i = 0; i < words.length; i++) {
let word = words[i]
if (word !== "") {
insert(count, {"seedWord": word});
}
}
}
}