This commit is contained in:
1 parent
c718d75774
commit
e36329ff0e
3 files changed
+10
-7
No files matched your search
@@ -378,7 +378,8 @@ fn apply_launch_overrides_patch(
|
||||
overrides.game_resolution = game_resolution;
|
||||
}
|
||||
if let Some(window_title) = patch.window_title {
|
||||
overrides.window_title = window_title.filter(|value| !value.trim().is_empty());
|
||||
overrides.window_title =
|
||||
window_title.filter(|value| !value.trim().is_empty());
|
||||
}
|
||||
if let Some(mode) = patch.instance_mode {
|
||||
overrides.instance_mode = Some(mode);
|
||||
|
||||
@@ -689,10 +689,12 @@ impl Settings {
|
||||
.bind(self.custom_window_title_enabled)
|
||||
.execute(exec)
|
||||
.await?;
|
||||
sqlx::query("UPDATE settings SET default_window_title = ? WHERE id = 0")
|
||||
.bind(self.default_window_title.trim())
|
||||
.execute(exec)
|
||||
.await?;
|
||||
sqlx::query(
|
||||
"UPDATE settings SET default_window_title = ? WHERE id = 0",
|
||||
)
|
||||
.bind(self.default_window_title.trim())
|
||||
.execute(exec)
|
||||
.await?;
|
||||
sqlx::query("UPDATE settings SET mc_memory_optimize = ? WHERE id = 0")
|
||||
.bind(self.memory.optimize_before_launch)
|
||||
.execute(exec)
|
||||
|
||||
Reference in new issue
Block a user