JUCE
JUCE copied to clipboard
[Bug]: showOkCancelBox has the display issue on 7.0.1 while 6.1.6 don't have
Detailed steps on how to reproduce the bug
- 7.0.1 has this issue, haven't test on 7.0.0
- 6.1.6 don't have this issue, is stable
1 normal build the application and open it 2 close the applicaton with the close button:
void closeButtonPressed() override {
// 退出确认
juce::AlertWindow::showOkCancelBox(
juce::MessageBoxIconType::WarningIcon, L"重要提示信息:",
L"确定退出当前应用程序?", L"确定退出", L"取消退出",
this->getMainComponent(),
juce::ModalCallbackFunction::create([](int result) {
if (result == 1) {
SINFO << "click close button and exit all program";
JUCEApplication::getInstance()->systemRequestedQuit();
}
}));
}
3 some area of the AlertWindow is lost, not always have this issue, but it can be easily re-produced when close the close button many times try.
4 some times it is ok as below, this is one accidental bug, but 6.1.6 always ok.
What is the expected behaviour?
some area of the AlertWindow is lost
Operating systems
Linux
What versions of the operating systems?
Linux Ubuntu20.04
Architectures
x86_64, 64-bit
Stacktrace
No response
Plug-in formats (if applicable)
No response
Plug-in host applications (DAWs) (if applicable)
No response
Testing on the develop
branch
I have not tested against the develop
branch
Code of Conduct
- [X] I agree to follow the Code of Conduct