🐞 fix(_user): @alokify PR

This commit is contained in:
Eshan Roy
2024-11-26 09:03:09 +05:30
parent 121100118c
commit 76861e1720

View File

@@ -19,12 +19,15 @@ import tomlkit
import shutil
import time
import re
import Kernel
from libs.Kernel import Kernel, InstalledKernel, CommunityKernel
from ui.MessageWindow import MessageWindow
from queue import Queue
import gi
gi.require_version("Gtk", "3.0") # GTK 2.0 is dead!
from gi.repository import GLib
base_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), ".."))
lastest_archlinux_package_search_url = ("https://archlinux.org/packages/search/json?name=${PACKAGE_NAME}")
@@ -32,7 +35,7 @@ archlinux_mirror_archive_url = "https://archive.archlinux.org/"
headers = {
"Content-Type": "text/plain;charset=UTF-8",
"User-Agent": "",
"User-Agent": "Mozilla/5.0 (Linux x86_64) Gecko Firefox",
}
cache_days = 5
@@ -535,3 +538,8 @@ def print_all_threads():
if logger.getEffectiveLevel() == 10:
logger.debug("Thread: %s and State: %s" %(thread.name, thread.is_alive()))
def update_progress_textview(self, line):
try:
if len(line) > 0:
self.textbuffer.insert_markup()