Private
Public Access
fix(regression): for adding files in the files & media panel.
This commit is contained in:
+2
-1
@@ -3521,6 +3521,7 @@ def render_files_and_media(app: App) -> None:
|
|||||||
imgui.dummy(imgui.ImVec2(0, 5))
|
imgui.dummy(imgui.ImVec2(0, 5))
|
||||||
if imgui.button("Add Files to Inventory"):
|
if imgui.button("Add Files to Inventory"):
|
||||||
r = hide_tk_root(); paths = filedialog.askopenfilenames(); r.destroy()
|
r = hide_tk_root(); paths = filedialog.askopenfilenames(); r.destroy()
|
||||||
|
from src import models
|
||||||
for p in paths:
|
for p in paths:
|
||||||
if p not in [f.path if hasattr(f, "path") else f for f in app.files]: app.files.append(models.FileItem(path=p))
|
if p not in [f.path if hasattr(f, "path") else f for f in app.files]: app.files.append(models.FileItem(path=p))
|
||||||
imgui.same_line()
|
imgui.same_line()
|
||||||
@@ -6456,7 +6457,7 @@ def render_mma_track_summary(app: App) -> None:
|
|||||||
| ETA: ~14m (6 tickets remaining) |
|
| ETA: ~14m (6 tickets remaining) |
|
||||||
+---------------------------------------------------------+
|
+---------------------------------------------------------+
|
||||||
"""
|
"""
|
||||||
is_nerv = theme.is_nerv_active()
|
is_nerv = theme.is_nerv_active()
|
||||||
track_name = app.active_track.description if app.active_track else "None"
|
track_name = app.active_track.description if app.active_track else "None"
|
||||||
if getattr(app, "ui_project_execution_mode", "native") == "beads": track_name = "Beads Graph"
|
if getattr(app, "ui_project_execution_mode", "native") == "beads": track_name = "Beads Graph"
|
||||||
track_stats = project_manager.calculate_track_progress(app.active_track.tickets if app.active_track else app.active_tickets)
|
track_stats = project_manager.calculate_track_progress(app.active_track.tickets if app.active_track else app.active_tickets)
|
||||||
|
|||||||
Reference in New Issue
Block a user