A COUNTER issue
Hey John, thankt you for implementing the possibility to reset the counter. It works great. One issue I have though. When writing for an email and inserting the counter value with quicktext (this works fine :-)), lets sey the counter is on 5. But if you change your mind and dont send the mail (close Mail) the follwing happens: After that you want to write another mail. In this mail the counter is now on number 6 even though you discarded the previos mail. I think the number should be on 5. I think the counter should only count if you really pushed the send button. If I reflect a little bit in the old pro version of Hesselow this funktionality was implemented...I might be wrong... What do you mean? Thank you
Yesterday I looked on the script section on jobisoft/quicktext-wiki, and I must say this is really great: I read it throu and I understood the first time how one can read out the actual counter-value via script: let counterval = this.mQuicktext.process_counter() return counterval I wrote an counteradjuster to stay in line (perhaps one also has descarded a mail) let counterval = this.mQuicktext.process_counter() counteradjustment = 0 countervalad = (counterval * 1) - (counteradjustment * 1) return countervalad
perhaps one can need this too
Thank you :-)
I don't think quicktext can detect if an email got send or not.
Perhaps the new function resetCounter should have a parameter value:
resetCounter: function(value)
{
gQuicktext.preferences.setPref("counter", value);
}
From menu it could be called with quicktext.resetCounter(0); but from Scripts one could use it to change the counter to any value.
This will be possible with WebExtension API. So postponing this.