Web version: no engine-file or folder buttons in a browser's settings; docs: the review check (359 of 359 positions the same as on the computer), checks of stage 2
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
027860901d
commit
67c91b6e0d
4 changed files with 27 additions and 7 deletions
|
|
@ -5069,7 +5069,11 @@ fn engine_settings(ui: &mut Ui, settings: &mut Settings, actions: &mut Vec<GameA
|
|||
};
|
||||
// In a browser threads and memory are the platform's: one thread (the
|
||||
// single-threaded engine), its memory (design §1.5).
|
||||
let shown = if crate::platform::CAPS.engine_programs { 4 } else { 2 };
|
||||
let shown = if crate::platform::CAPS.engine_programs {
|
||||
4
|
||||
} else {
|
||||
2
|
||||
};
|
||||
if slider >= 100.0 {
|
||||
ui.spacing_mut().slider_width = slider;
|
||||
egui::Grid::new("engine_settings_grid")
|
||||
|
|
|
|||
|
|
@ -167,6 +167,8 @@ impl SettingsWindow {
|
|||
RichText::new(tr("Written as the annotator of the games you add"))
|
||||
.weak(),
|
||||
);
|
||||
// A browser has no folders for databases.
|
||||
#[cfg(not(web))]
|
||||
ui.horizontal(|ui| {
|
||||
ui.label(tr("Folder for new databases:"));
|
||||
let dir =
|
||||
|
|
@ -183,7 +185,6 @@ impl SettingsWindow {
|
|||
ui.label(RichText::new(short).weak())
|
||||
.on_hover_text(dir.display().to_string());
|
||||
if ui.button(tr("Change…")).clicked() {
|
||||
#[cfg(not(web))]
|
||||
actions.push(SettingsAction::PickBaseFolder);
|
||||
}
|
||||
});
|
||||
|
|
@ -242,8 +243,9 @@ impl SettingsWindow {
|
|||
{
|
||||
actions.push(SettingsAction::DownloadEngine);
|
||||
}
|
||||
// A browser has no engine programs.
|
||||
#[cfg(not(web))]
|
||||
if ui.button(tr("Choose engine file…")).clicked() {
|
||||
#[cfg(not(web))]
|
||||
actions.push(SettingsAction::AddEngine);
|
||||
}
|
||||
});
|
||||
|
|
@ -423,6 +425,8 @@ impl SettingsWindow {
|
|||
});
|
||||
}
|
||||
ui.add_space(6.0);
|
||||
// A browser has no engine programs.
|
||||
#[cfg(not(web))]
|
||||
ui.horizontal(|ui| {
|
||||
if ui
|
||||
.add_enabled(
|
||||
|
|
@ -431,7 +435,6 @@ impl SettingsWindow {
|
|||
)
|
||||
.clicked()
|
||||
{
|
||||
#[cfg(not(web))]
|
||||
actions.push(SettingsAction::AddEngine);
|
||||
}
|
||||
if self.checking_engine {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue