Skip to content

Commit c764992

Browse files
kjaroshDinnerbone
authored andcommitted
desktop: Remove open URL mode from the open dialog
1 parent f4bf36a commit c764992

File tree

1 file changed

+1
-28
lines changed

1 file changed

+1
-28
lines changed

desktop/src/gui/dialogs/open_dialog.rs

Lines changed: 1 addition & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use crate::player::LaunchOptions;
55
use egui::{
66
emath, Align2, Button, Checkbox, ComboBox, Grid, Layout, Slider, TextEdit, Ui, Widget, Window,
77
};
8-
use ruffle_core::backend::navigator::{OpenURLMode, SocketMode};
8+
use ruffle_core::backend::navigator::SocketMode;
99
use ruffle_core::config::Letterbox;
1010
use ruffle_core::{LoadBehavior, PlayerRuntime, StageAlign, StageScaleMode};
1111
use ruffle_render::quality::StageQuality;
@@ -405,33 +405,6 @@ impl OpenDialog {
405405
.ui(ui, &mut self.options.tcp_connections, locale);
406406
ui.end_row();
407407

408-
// TODO: This should probably be a global setting somewhere, not per load
409-
ui.label(text(locale, "open-url-mode"));
410-
ComboBox::from_id_salt("open-file-advanced-options-open-url-mode")
411-
.selected_text(match self.options.open_url_mode {
412-
OpenURLMode::Allow => text(locale, "open-url-mode-allow"),
413-
OpenURLMode::Confirm => text(locale, "open-url-mode-confirm"),
414-
OpenURLMode::Deny => text(locale, "open-url-mode-deny"),
415-
})
416-
.show_ui(ui, |ui| {
417-
ui.selectable_value(
418-
&mut self.options.open_url_mode,
419-
OpenURLMode::Allow,
420-
text(locale, "open-url-mode-allow"),
421-
);
422-
ui.selectable_value(
423-
&mut self.options.open_url_mode,
424-
OpenURLMode::Confirm,
425-
text(locale, "open-url-mode-confirm"),
426-
);
427-
ui.selectable_value(
428-
&mut self.options.open_url_mode,
429-
OpenURLMode::Deny,
430-
text(locale, "open-url-mode-deny"),
431-
);
432-
});
433-
ui.end_row();
434-
435408
ui.label(text(locale, "load-behavior"));
436409
self.load_behavior
437410
.ui(ui, &mut self.options.player.load_behavior, locale);

0 commit comments

Comments
 (0)