1
0
mirror of git://projects.qi-hardware.com/gmenu2x.git synced 2024-07-02 18:05:26 +03:00

Add support of text manuals (.man.txt files) inside OPK archives

This commit is contained in:
Paul Cercueil 2012-12-08 04:26:48 -03:00
parent f2e3efd359
commit 610b489d51

View File

@ -408,8 +408,13 @@ void LinkApp::showManual() {
readme.push_back(str);
free(buf);
TextDialog td(gmenu2x, getTitle(), "ReadMe", getIconPath(), &readme);
td.exec();
if (manual.substr(manual.size()-8,8)==".man.txt") {
TextManualDialog tmd(gmenu2x, getTitle(), getIconPath(), &readme);
tmd.exec();
} else {
TextDialog td(gmenu2x, getTitle(), "ReadMe", getIconPath(), &readme);
td.exec();
}
return;
}
#endif