mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-01-24 18:17:21 +01:00
Hide the video driver switch button if there is only one option.
This commit is contained in:
parent
e6a9caf3a8
commit
5f623865c6
@ -6399,6 +6399,10 @@ EditorNode::EditorNode() {
|
|||||||
|
|
||||||
_update_video_driver_color();
|
_update_video_driver_color();
|
||||||
|
|
||||||
|
if (video_drivers.get_slice_count(",") < 2) {
|
||||||
|
video_driver->hide();
|
||||||
|
}
|
||||||
|
|
||||||
video_restart_dialog = memnew(ConfirmationDialog);
|
video_restart_dialog = memnew(ConfirmationDialog);
|
||||||
video_restart_dialog->set_text(TTR("Changing the video driver requires restarting the editor."));
|
video_restart_dialog->set_text(TTR("Changing the video driver requires restarting the editor."));
|
||||||
video_restart_dialog->get_ok()->set_text(TTR("Save & Restart"));
|
video_restart_dialog->get_ok()->set_text(TTR("Save & Restart"));
|
||||||
|
Loading…
Reference in New Issue
Block a user