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:
parent
f2e3efd359
commit
610b489d51
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user