@eshanized updated the repository!!!

This commit is contained in:
Eshan Roy (Eshanized)
2024-04-28 22:52:46 +05:30
parent b0afcca59f
commit 9b14bbb98e
4 changed files with 5 additions and 5 deletions

View File

@@ -7,14 +7,14 @@ from string import Template
base_dir = os.path.dirname(os.path.realpath(__file__))
default_file = "%s/defaults/blackbox.yaml"
default_file = "%s/defaults/blackbox.yaml" % base_dir
class Settings(object):
def __init__(self, display_versions, display_package_progress):
self.display_versions = display_versions
self.display_package_progress = display_package_progress
def write_cofig_file(self):
def write_config_file(self):
try:
content = []
with open(fn.config_file, "r", encoding="UTF-8") as f:

View File

@@ -49,7 +49,7 @@ class Main(Gtk.Window):
self.set_icon_from_file(os.path.join(base_dir, "images/blackbox.png"))
self.set_default_size(1280, 720) # Basic Con
# let's give a focus on search entry * set "ctrl + f"
self.connect("key-press-event", self.key_press_event)
self.connect("key-press-event", self.on_keypress_event)
self.timeout_id = None
self.display_versions = False # Bool
self.search_activated = False
@@ -143,7 +143,7 @@ class Main(Gtk.Window):
installed_lst_file = "%s/cache/installed.lst" % base_dir
packages_app_start_file = "%s/%s-packages.txt" % (
fn.log_dir,
fn.datetime.now().strftime("%Y-%m-%d-%H-%M-%S")
fn.datetime.now().strftime("%Y-%m-%d-%H-%M-%S"),
)
if os.path.exists(installed_lst_file):
fn.logger.info(

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

View File

@@ -34,7 +34,7 @@ class GUI_Worker(Thread):
)
except Exception as e:
fn.logger.error("Exception in LOC11: %s" % e)
fn.logger.error("Exception on run(): %s" % e)
finally:
if items is None:
fn.logger.debug("Stopping GUI Worker thread")