Reduced redundancy, logviewer fulll removed , add log_window and menu_bar

This commit is contained in:
2025-08-12 22:44:49 +02:00
parent 80aebe3bab
commit dc51bf6f2c
32 changed files with 1431 additions and 1617 deletions

View File

@@ -2,7 +2,7 @@ import os
import tkinter as tk
from typing import Optional, TYPE_CHECKING
from cfd_app_config import LocaleStrings, _
from .cfd_app_config import LocaleStrings
if TYPE_CHECKING:
from custom_file_dialog import CustomFileDialog
@@ -73,15 +73,17 @@ class NavigationManager:
if not self.dialog.history or self.dialog.history[-1] != self.dialog.current_dir:
self.dialog.history.append(self.dialog.current_dir)
self.dialog.history_pos = len(self.dialog.history) - 1
self.dialog.widget_manager.search_animation.stop()
self.dialog.view_manager.populate_files(item_to_select=file_to_select)
self.dialog.view_manager.populate_files(
item_to_select=file_to_select)
self.update_nav_buttons()
self.dialog.update_status_bar()
self.dialog.update_action_buttons_state()
except Exception as e:
self.dialog.widget_manager.search_status_label.config(text=f"{LocaleStrings.CFD['error_title']}: {e}")
self.dialog.widget_manager.search_status_label.config(
text=f"{LocaleStrings.CFD['error_title']}: {e}")
def go_back(self) -> None:
"""Navigates to the previous directory in the history."""