Desktop: Add an 'Enable V-Sync' preference on Mac (#3887)

* add vsync pref

* account for physical scale in pixel preview passthru check

* change allow to expect attr

* Update user-facing v-sync text

---------

Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
Timon
2026-03-11 21:32:37 +00:00
committed by GitHub
co-authored by Keavon Chambers
parent 6d0357bbcf
commit a18b7ff79d
9 changed files with 111 additions and 31 deletions
+2 -2
View File
@@ -19,7 +19,7 @@ pub(crate) mod menu {
panic!("Menu bar layout group is supposed to be a row");
};
widgets
.into_iter()
.iter()
.map(|widget| {
let text_button = match widget.widget.as_ref() {
Widget::TextButton(text_button) => text_button,
@@ -79,7 +79,7 @@ pub(crate) mod menu {
let enabled = !*disabled;
if !children.is_empty() {
let items = convert_menu_bar_entry_children_to_menu_items(&children, root_widget_id, path.clone());
let items = convert_menu_bar_entry_children_to_menu_items(children, root_widget_id, path.clone());
return MenuItem::SubMenu { id, text, enabled, items };
}