chiark / gitweb /
Reorder YourOptionsMenuContents
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 4 Feb 2024 19:53:18 +0000 (19:53 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 4 Feb 2024 20:38:09 +0000 (20:38 +0000)
Now it's in the same order as the actual displayed menu.

src/options.rs

index 5d9faa9c5dcb4ed96d9bc27f0b4191654a5f4b6f..7b26886676863c1a66c41351d745f1283c08df7f 100644 (file)
@@ -22,14 +22,13 @@ struct YourOptionsMenu {
 struct YourOptionsMenuContents {
     el_display_name: EditableMenuLine<String>, // N
     cl_default_vis: CyclingMenuLine<Visibility>,
-    cl_default_sensitive: CyclingMenuLine<bool>,
     el_default_language: EditableMenuLine<Option<String>>,
-
+    cl_default_sensitive: CyclingMenuLine<bool>,
     cl_locked: CyclingMenuLine<bool>,
-    cl_bot: CyclingMenuLine<bool>,
-    cl_discoverable: CyclingMenuLine<bool>,
     cl_hide_collections: CyclingMenuLine<bool>,
+    cl_discoverable: CyclingMenuLine<bool>,
     cl_indexable: CyclingMenuLine<bool>,
+    cl_bot: CyclingMenuLine<bool>,
     // fields (harder because potentially open-ended number of them)
     // note (bio) (harder because flip to an editor)
 }