Add MT-32 LCD message display support in the status bar
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
|
||||
MainWindow* main_window = nullptr;
|
||||
|
||||
static QString sb_text, sb_buguitext;
|
||||
static QString sb_text, sb_buguitext, sb_mt32lcdtext;
|
||||
|
||||
extern "C" {
|
||||
|
||||
@@ -99,7 +99,13 @@ int ui_msgbox(int flags, void *message) {
|
||||
}
|
||||
|
||||
void ui_sb_update_text() {
|
||||
emit main_window->statusBarMessage(sb_text.isEmpty() ? sb_buguitext : sb_text);
|
||||
emit main_window->statusBarMessage( !sb_mt32lcdtext.isEmpty() ? sb_mt32lcdtext : sb_text.isEmpty() ? sb_buguitext : sb_text);
|
||||
}
|
||||
|
||||
void ui_sb_mt32lcd(char* str)
|
||||
{
|
||||
sb_mt32lcdtext = QString(str);
|
||||
ui_sb_update_text();
|
||||
}
|
||||
|
||||
void ui_sb_set_text_w(wchar_t *wstr) {
|
||||
|
||||
Reference in New Issue
Block a user