1
0
mirror of git://projects.qi-hardware.com/gmenu2x.git synced 2024-11-29 18:05:00 +02: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); readme.push_back(str);
free(buf); free(buf);
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); TextDialog td(gmenu2x, getTitle(), "ReadMe", getIconPath(), &readme);
td.exec(); td.exec();
}
return; return;
} }
#endif #endif