mirror of
https://github.com/Snigdha-OS/snigdhaos-kernel-switcher.git
synced 2025-09-07 15:45:13 +02:00
🐞 fix(_user): @alokify PR
This commit is contained in:
@@ -19,12 +19,15 @@ import tomlkit
|
|||||||
import shutil
|
import shutil
|
||||||
import time
|
import time
|
||||||
import re
|
import re
|
||||||
import Kernel
|
from libs.Kernel import Kernel, InstalledKernel, CommunityKernel
|
||||||
|
from ui.MessageWindow import MessageWindow
|
||||||
from queue import Queue
|
from queue import Queue
|
||||||
import gi
|
import gi
|
||||||
gi.require_version("Gtk", "3.0") # GTK 2.0 is dead!
|
gi.require_version("Gtk", "3.0") # GTK 2.0 is dead!
|
||||||
from gi.repository import GLib
|
from gi.repository import GLib
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
base_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), ".."))
|
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}")
|
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 = {
|
headers = {
|
||||||
"Content-Type": "text/plain;charset=UTF-8",
|
"Content-Type": "text/plain;charset=UTF-8",
|
||||||
"User-Agent": "",
|
"User-Agent": "Mozilla/5.0 (Linux x86_64) Gecko Firefox",
|
||||||
}
|
}
|
||||||
|
|
||||||
cache_days = 5
|
cache_days = 5
|
||||||
@@ -535,3 +538,8 @@ def print_all_threads():
|
|||||||
if logger.getEffectiveLevel() == 10:
|
if logger.getEffectiveLevel() == 10:
|
||||||
logger.debug("Thread: %s and State: %s" %(thread.name, thread.is_alive()))
|
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()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user