1
0
Fork 0

Fix invalid debug assertions check

This commit is contained in:
Robbert van der Helm 2024-05-06 00:35:27 +02:00
parent 9e2b9cc06e
commit cd9b589d23
2 changed files with 2 additions and 2 deletions

View file

@ -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);
}
}

View file

@ -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