mirror of
https://projects.vdr-developer.org/git/vdr-plugin-skindesigner.git
synced 2023-10-19 17:58:31 +02:00
clearing displaymessage if it is called without text
This commit is contained in:
parent
5d715edba1
commit
e7abb8557e
1
HISTORY
1
HISTORY
@ -86,3 +86,4 @@ Version 0.0.5
|
||||
- fixed {hasicon} Token in displaymenu header
|
||||
- added {newmails} Token in displaychannel statusinfo, mailbox plugin
|
||||
has to be installed
|
||||
- clearing displaymessage if it is called without text
|
||||
|
@ -25,8 +25,10 @@ cSDDisplayMessage::~cSDDisplayMessage() {
|
||||
void cSDDisplayMessage::SetMessage(eMessageType Type, const char *Text) {
|
||||
if (!doOutput)
|
||||
return;
|
||||
if (!Text)
|
||||
if (!Text) {
|
||||
messageView->ClearMessage();
|
||||
return;
|
||||
}
|
||||
messageView->DrawMessage(Type, Text);
|
||||
}
|
||||
|
||||
|
@ -41,6 +41,10 @@ void cDisplayMessageView::DrawMessage(eMessageType type, const char *text) {
|
||||
DrawViewElement(veMessage, &stringTokens, &intTokens);
|
||||
}
|
||||
|
||||
void cDisplayMessageView::ClearMessage(void) {
|
||||
ClearViewElement(veMessage);
|
||||
}
|
||||
|
||||
void cDisplayMessageView::Action(void) {
|
||||
SetInitFinished();
|
||||
FadeIn();
|
||||
|
@ -13,6 +13,7 @@ public:
|
||||
bool createOsd(void);
|
||||
void DrawBackground(void);
|
||||
void DrawMessage(eMessageType type, const char *text);
|
||||
void ClearMessage(void);
|
||||
void DoFadeIn(void) { Start(); };
|
||||
void Flush(void) { DoFlush(); };
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user