mirror of
https://github.com/monero-project/monero-gui.git
synced 2026-04-07 14:57:25 -04:00
wizard: redesign seed page
- move mnemonic seed - restore height into a separate page - pdf template - seed verification - responsive UI - accessibility
This commit is contained in:
@@ -160,6 +160,18 @@ QList<QString> OSHelper::grabQrCodesFromScreen() const
|
||||
return codes;
|
||||
}
|
||||
|
||||
bool OSHelper::openFile(const QString &filePath) const
|
||||
{
|
||||
QString canonicalFilePath = QFileInfo(filePath).canonicalFilePath();
|
||||
QUrl url = QUrl::fromLocalFile(canonicalFilePath);
|
||||
if (!url.isValid())
|
||||
{
|
||||
qWarning() << "Malformed file path" << canonicalFilePath << url.errorString();
|
||||
return false;
|
||||
}
|
||||
return QDesktopServices::openUrl(url);
|
||||
}
|
||||
|
||||
bool OSHelper::openContainingFolder(const QString &filePath) const
|
||||
{
|
||||
QString canonicalFilePath = QFileInfo(filePath).canonicalFilePath();
|
||||
@@ -313,3 +325,9 @@ quint8 OSHelper::getNetworkTypeFromFile(const QString &keysPath) const
|
||||
}
|
||||
return getNetworkTypeAndAddressFromFile(walletPath).first;
|
||||
}
|
||||
|
||||
void OSHelper::openSeedTemplate() const
|
||||
{
|
||||
QFile::copy(":/wizard/template.pdf", QDir::tempPath() + "/seed_template.pdf");
|
||||
openFile(QDir::tempPath() + "/seed_template.pdf");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user