disppmfirst config file token
This commit is contained in:
@@ -716,6 +716,7 @@ CfgGed::CfgGed() {
|
||||
displistcursor = NO;
|
||||
dispmargin = 0;
|
||||
dispmsgsize = DISPMSGSIZE_BYTES;
|
||||
disppmfirst = true;
|
||||
disptabsize = 8;
|
||||
encodeemailheaders = true;
|
||||
externoptions = EXTUTIL_CLS | EXTUTIL_CURSOR | EXTUTIL_RELOAD | EXTUTIL_PAUSEONERROR | EXTUTIL_KEEPCTRL;
|
||||
|
@@ -132,6 +132,7 @@ const word CRC_DISPLOCALHIGH = 0x1D8B;
|
||||
const word CRC_DISPMARGIN = 0xC0EC;
|
||||
const word CRC_DISPMSGSIZE = 0xB0E2;
|
||||
const word CRC_DISPPAGEBAR = 0x60A4;
|
||||
const word CRC_DISPPMFIRST = 0x5DFC;
|
||||
const word CRC_DISPREALMSGNO = 0xE30F;
|
||||
const word CRC_DISPREPLIESMODE = 0x0099;
|
||||
const word CRC_DISPSOFTCR = 0x85E9;
|
||||
|
@@ -283,6 +283,7 @@ SwitchD:
|
||||
case CRC_DISPLISTCURSOR : CfgDisplistcursor (); break;
|
||||
case CRC_DISPMARGIN : CfgDispmargin (); break;
|
||||
case CRC_DISPMSGSIZE : CfgDispmsgsize (); break;
|
||||
case CRC_DISPPMFIRST : CfgDisppmfirst (); break;
|
||||
case CRC_DISPTABSIZE : CfgDisptabsize (); break;
|
||||
default : found = false;
|
||||
}
|
||||
|
@@ -62,6 +62,13 @@ void CfgDispareano() {
|
||||
|
||||
// ------------------------------------------------------------------
|
||||
|
||||
void CfgDisppmfirst() {
|
||||
|
||||
CFG->disppmfirst = GetYesno(val);
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------
|
||||
|
||||
void CfgDisptabsize() {
|
||||
|
||||
CFG->disptabsize = atoi(val);
|
||||
|
@@ -132,6 +132,7 @@ void CfgDisplocalhigh ();
|
||||
void CfgDispmargin ();
|
||||
void CfgDispmsgsize ();
|
||||
void CfgDisppagebar ();
|
||||
void CfgDisppmfirst ();
|
||||
void CfgDisprealmsgno ();
|
||||
void CfgDispsoftcr ();
|
||||
void CfgDispstatusline ();
|
||||
|
@@ -207,6 +207,7 @@ public:
|
||||
PosLen disphdrnodeset;
|
||||
int displistcursor;
|
||||
int dispmargin; // rightmargin;
|
||||
bool disppmfirst;
|
||||
int dispmsgsize;
|
||||
uint disptabsize; // tabsize;
|
||||
bool encodeemailheaders;
|
||||
|
@@ -236,7 +236,8 @@ void Reader() {
|
||||
AA->Play().Play();
|
||||
|
||||
// Jump to next message. Go to personal mail if any.
|
||||
if(AA->PMrk.Tags()) {
|
||||
if (CFG->disppmfirst && AA->PMrk.Tags())
|
||||
{
|
||||
AA->SetBookmark(AA->lastread());
|
||||
AA->isreadpm = false;
|
||||
ToggleMarkRead();
|
||||
|
@@ -388,7 +388,8 @@ void PrevArea() {
|
||||
AA->Open();
|
||||
AA->RandomizeData();
|
||||
AA->SetBookmark(AA->lastread());
|
||||
if(AA->PMrk.Tags()) {
|
||||
if (CFG->disppmfirst && AA->PMrk.Tags())
|
||||
{
|
||||
AA->isreadpm = false;
|
||||
ToggleMarkRead();
|
||||
}
|
||||
@@ -419,11 +420,11 @@ void NextArea() {
|
||||
AA->Open();
|
||||
AA->RandomizeData();
|
||||
AA->SetBookmark(AA->lastread());
|
||||
if(AA->PMrk.Tags()) {
|
||||
if (CFG->disppmfirst && AA->PMrk.Tags())
|
||||
{
|
||||
AA->isreadpm = false;
|
||||
ToggleMarkRead();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user