Wrapping up bedrock implementation
This commit is contained in:
@@ -59,9 +59,9 @@ pub const fn toml_path_hierarchy(path: &str) -> Option<&str> {
|
||||
}
|
||||
|
||||
use anyhow::{Context, Result};
|
||||
use serde::{Serialize, de::DeserializeOwned};
|
||||
use galaxyui::{AppContext, Entity, ModelContext};
|
||||
use galaxyui_extras::user_preferences::UserPreferences;
|
||||
use serde::{Serialize, de::DeserializeOwned};
|
||||
|
||||
/// Whether the TOML-backed settings file is active.
|
||||
///
|
||||
|
||||
@@ -824,8 +824,8 @@ macro_rules! generate_settings_event_fn {
|
||||
),
|
||||
) {
|
||||
use anyhow::anyhow;
|
||||
use serde_json;
|
||||
use galaxyui::SingletonEntity;
|
||||
use serde_json;
|
||||
use $crate::Setting as _;
|
||||
use $crate::manager::{SettingsEvent, SettingsManager};
|
||||
SettingsManager::handle(ctx).update(ctx, |manager, ctx| {
|
||||
|
||||
@@ -540,8 +540,8 @@ mod write_to_preferences_tests {
|
||||
/// Option fields — reproduces the exact QuakeModeSettings scenario.
|
||||
#[test]
|
||||
fn test_no_spurious_write_with_hashmap_and_missing_options() {
|
||||
use std::collections::HashMap;
|
||||
use galaxyui_extras::user_preferences::toml_backed::TomlBackedUserPreferences;
|
||||
use std::collections::HashMap;
|
||||
|
||||
#[derive(
|
||||
Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize, schemars::JsonSchema,
|
||||
|
||||
Reference in New Issue
Block a user