mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-29 01:20:17 +00:00
Fix ambiguous mix of || and && in if-expression
This commit is contained in:
parent
d1e08fdb2f
commit
72df89f917
@ -48,10 +48,10 @@ AsepriteUpdate::AsepriteUpdate(std::string version)
|
||||
|
||||
void AsepriteUpdate::onBeforeClose(ui::CloseEvent& ev)
|
||||
{
|
||||
if (m_download.status() != drm::Thread::Status::FINISHED ||
|
||||
m_installation && m_installation->status() != drm::Thread::Status::FINISHED) {
|
||||
log("Stopping, please wait...");
|
||||
ev.cancel();
|
||||
if ((m_download.status() != drm::Thread::Status::FINISHED) ||
|
||||
(m_installation && m_installation->status() != drm::Thread::Status::FINISHED)) {
|
||||
log("Stopping, please wait...");
|
||||
ev.cancel();
|
||||
}
|
||||
if (!m_closing) {
|
||||
m_download.shutdown();
|
||||
|
Loading…
x
Reference in New Issue
Block a user