Show keyboard instructions if no mouse / warning on custom repo

This commit is contained in:
Floris Bos 2021-11-23 12:09:03 +01:00
parent f5390c821a
commit b34d2a54af
4 changed files with 32 additions and 2 deletions

View file

@ -1213,6 +1213,16 @@ QString ImageWriter::detectPiKeyboard()
return QString();
}
bool ImageWriter::hasMouse()
{
return !_embeddedMode || QFile::exists("/dev/input/mouse0");
}
bool ImageWriter::customRepo()
{
return _repo.toString() != OSLIST_URL;
}
void MountUtilsLog(std::string msg) {
Q_UNUSED(msg)
//qDebug() << "mountutils:" << msg.c_str();