Skip to content

Commit

Permalink
Fix build with disabled GTK.
Browse files Browse the repository at this point in the history
  • Loading branch information
john-preston committed Apr 14, 2021
1 parent 672ec0b commit 91c0e66
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion webview/platform/linux/webview_linux.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ Available Availability() {
#ifndef DESKTOP_APP_DISABLE_GTK_INTEGRATION
return WebKit2Gtk::Availability();
#else // !DESKTOP_APP_DISABLE_GTK_INTEGRATION
return false;
return Available{
.error = Available::Error::NoGtkOrWebkit2Gtk,
.details = "This feature was disabled at build time.",
};
#endif // DESKTOP_APP_DISABLE_GTK_INTEGRATION
}

Expand Down

0 comments on commit 91c0e66

Please sign in to comment.