обновление

This commit is contained in:
2026-10-17 00:52:25 +02:00
parent 16a82fd936
commit b63cfe2a21
2 changed files with 6 additions and 6 deletions

View File

@@ -50,7 +50,7 @@ impl App {
pub fn new(music_dir: &str) -> Result<Self, Box<dyn std::error::Error>> {
let saved = crate::state::load();
// Пробуем загрузить кэш. Если его нет или он пустой — сканируем папку.
// Пробуем загрузить кэш. Если его нет или он пустой - сканируем папку.
let tracks = match crate::state::load_cache() {
Some(cached) if !cached.is_empty() => cached,
_ => {
@@ -65,7 +65,7 @@ impl App {
let mut app = Self {
library,
player: AudioPlayer::new()?,
status: "F1 — помощь, : — команда".into(),
status: "F1 - помощь, : - команда".into(),
playing_index: None,
active_panel: Panel::Left,
input_mode: InputMode::Normal,
@@ -109,7 +109,7 @@ impl App {
fn default_status(&self) -> String {
match self.playing_index.and_then(|i| self.library.track(i)) {
Some(t) => format!("{} — {}", t.artist, t.title),
None => "F1 — помощь, : — команда".into(),
None => "F1 - помощь, : - команда".into(),
}
}
@@ -435,7 +435,7 @@ impl App {
}
fn persist(&self) {
// Сохраняем кэш треков — чтобы при следующем запуске
// Сохраняем кэш треков - чтобы при следующем запуске
// не сканировать директории заново.
crate::state::save_cache(&self.raw_tracks);

View File

@@ -113,7 +113,7 @@ fn draw_right_panel(f: &mut Frame, app: &mut App, area: Rect) {
let inner_width = area.width.saturating_sub(6) as usize;
let pad = inner_width
.saturating_sub(name.len() + total_str.len() + 3)
.saturating_sub(name.len() + total_str.len() + 4)
.max(1);
let line = format!("{} ] {} {}", name, "─".repeat(pad), total_str);
@@ -289,7 +289,7 @@ fn draw_status(f: &mut Frame, app: &App, area: Rect) {
.split(area);
let (status_text, status_title) = match app.input_mode {
InputMode::Search => (format!("> {}", app.search_buffer), " Поиск "),
InputMode::Search => (format!(">{}", app.search_buffer), " Поиск "),
InputMode::Command => (format!(":{}", app.command_buffer), " Команда "),
InputMode::Normal => {
let prefix = if app.player.is_paused() { "|| " } else { " " };