支持读取本地内核

This commit is contained in:
2024-04-23 22:08:52 +08:00
parent fd07edc739
commit 9909e472d5
5 changed files with 62 additions and 1 deletions

View File

@@ -10,6 +10,7 @@
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
#ifdef __linux__
// 风险提示
if(!QFile::exists(QDir::homePath() + "/.config/gxde-kernel-manager/read_already")) {
QMessageBox::warning(NULL, QObject::tr("Waring"), QObject::tr("It is danger because it may make your system unboot.\nPress 'OK' to countinue"));
@@ -17,4 +18,11 @@ int main(int argc, char *argv[])
MainWindow w;
w.show();
return a.exec();
#else
// 其它系统不支持该工具
QMessageBox::critical(NULL, QObject::tr("Error"), QObject::tr("It unsupport Windows"));
return a.exec();
#endif
}