Fix invalid debug assertions check
This commit is contained in:
parent
9e2b9cc06e
commit
cd9b589d23
|
@ -101,7 +101,7 @@ fn top_bar(cx: &mut Context) {
|
|||
// Try to open the Diopser plugin's page when clicking on the title. If this
|
||||
// fails then that's not a problem
|
||||
let result = open::that(Diopser::URL);
|
||||
if cfg!(debug) && result.is_err() {
|
||||
if cfg!(debug_assertions) && result.is_err() {
|
||||
nih_debug_assert_failure!("Failed to open web browser: {:?}", result);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -126,7 +126,7 @@ fn main_column(cx: &mut Context) {
|
|||
// Try to open the plugin's page when clicking on the title. If this
|
||||
// fails then that's not a problem
|
||||
let result = open::that(SpectralCompressor::URL);
|
||||
if cfg!(debug) && result.is_err() {
|
||||
if cfg!(debug_assertions) && result.is_err() {
|
||||
nih_debug_assert_failure!(
|
||||
"Failed to open web browser: {:?}",
|
||||
result
|
||||
|
|
Loading…
Reference in a new issue