Skip to content

Commit

Permalink
Disable context menu outside DEBUG mode
Browse files Browse the repository at this point in the history
  • Loading branch information
mdamt committed Jun 27, 2016
1 parent 003c052 commit 219ee2a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/installer.vala
Original file line number Diff line number Diff line change
Expand Up @@ -891,7 +891,10 @@ public class Installer : WebView {
if (debug == "1") {
settings.enable_developer_extras = true;
web_inspector.inspect_web_view.connect(getInspectorView);
} else {
settings.enable_default_context_menu = false;
}

settings.enable_file_access_from_file_uris = true;
settings.enable_universal_access_from_file_uris = true;
set_settings(settings);
Expand Down

0 comments on commit 219ee2a

Please sign in to comment.