bugfix: about dialog ni deloval pri tipični namestitvi

This commit is contained in:
2026-04-22 20:31:31 +02:00
parent f21adfbc80
commit c5d4cbdfd8
3 changed files with 9 additions and 7 deletions

View File

@@ -34,12 +34,12 @@ import urllib.request
import tempfile
from db_schema import create_tables
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
APPINFO_PATH = os.path.join(BASE_DIR, 'appinfo.json')
DB_PATH = 'songs.db'
SETTINGS_PATH = 'settings.json'
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
class SongProjector:
def __init__(self, root):
self.root = root
@@ -726,7 +726,7 @@ class SongProjector:
def show_app_info_tkinter(self):
"""Prikaže informacije o aplikaciji v glavnem oknu (ukaz 9900)."""
try:
with open('appinfo.json', 'r', encoding='utf-8') as f:
with open(APPINFO_PATH, 'r', encoding='utf-8') as f:
info = json.load(f)
self.cursor.execute("SELECT COUNT(*) FROM songs")