Tweak CS2 fetch defaults
Use a downward arrow icon for Fetch Images and default downloads to the project's images directory, updating subtool buttons and docs accordingly.
This commit is contained in:
+1
-1
@@ -26,7 +26,7 @@ class UIBuilderMixin:
|
||||
("🧹", self._t("toolbar.clear_excludes"), self.clear_excludes),
|
||||
("↩", self._t("toolbar.undo_exclude"), self.undo_exclude),
|
||||
("🔄", self._t("toolbar.reset_sliders"), self.reset_sliders),
|
||||
("⬇", self._t("toolbar.cs2_tool"), self.open_cs2_pattern_tool),
|
||||
("⭳", self._t("toolbar.cs2_tool"), self.open_cs2_pattern_tool),
|
||||
("🌓", self._t("toolbar.toggle_theme"), self.toggle_theme),
|
||||
]
|
||||
self._toolbar_buttons: list[dict[str, object]] = []
|
||||
|
||||
@@ -16,6 +16,8 @@ import requests
|
||||
from PIL import Image, ImageTk
|
||||
from urllib.parse import urlparse
|
||||
|
||||
from app.logic import IMAGES_DIR
|
||||
|
||||
|
||||
class CS2PatternFetcher:
|
||||
"""Fetch CS2 skin metadata and download pattern images."""
|
||||
@@ -191,9 +193,7 @@ class CS2PatternTool(tk.Toplevel):
|
||||
|
||||
self.weapons_var = tk.StringVar()
|
||||
self.patterns_var = tk.StringVar()
|
||||
self.directory_var = tk.StringVar(
|
||||
value=str((Path.cwd() / "images" / "cs2").resolve())
|
||||
)
|
||||
self.directory_var = tk.StringVar(value=str(IMAGES_DIR.resolve()))
|
||||
self.status_var = tk.StringVar(value=self._t("cs2.status_loading"))
|
||||
|
||||
self._init_widgets()
|
||||
@@ -460,7 +460,7 @@ class CS2PatternTool(tk.Toplevel):
|
||||
def _toolbar_button_defs(self) -> list[tuple[str, str, Any]]:
|
||||
return [
|
||||
("🔄", self._t("cs2.refresh_button"), self._refresh_data),
|
||||
("⬇", self._t("cs2.download_button"), self._download_selected),
|
||||
("⭳", self._t("cs2.download_button"), self._download_selected),
|
||||
("📁", self._t("cs2.browse_button"), self._browse_directory),
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user