mirror of
https://github.com/Snigdha-OS/snigdhaos-blackbox.git
synced 2025-09-22 12:35:03 +02:00
⏳ @eshanized updated the repository!!!
This commit is contained in:
@@ -19,11 +19,11 @@ from Settings import Settings
|
|||||||
from ui.MessageDialog import MessageDialog
|
from ui.MessageDialog import MessageDialog
|
||||||
from distro import id # DOCS : https://github.com/python-distro/distro
|
from distro import id # DOCS : https://github.com/python-distro/distro
|
||||||
|
|
||||||
import Functions as fn
|
# import Functions as fn
|
||||||
|
|
||||||
import gi # DOCS : https://askubuntu.com/questions/80448/what-would-cause-the-gi-module-to-be-missing-from-python
|
import gi # DOCS : https://askubuntu.com/questions/80448/what-would-cause-the-gi-module-to-be-missing-from-python
|
||||||
from gi.repository import GLib, Gtk
|
from gi.repository import GLib, Gtk
|
||||||
gi.require_version("Gtk" "3.0")
|
gi.require_version("Gtk", "3.0")
|
||||||
|
|
||||||
# NOTE: Base Directory
|
# NOTE: Base Directory
|
||||||
base_dir = os.path.dirname(os.path.realpath(__file__))
|
base_dir = os.path.dirname(os.path.realpath(__file__))
|
||||||
@@ -489,11 +489,11 @@ def refresh_ui(
|
|||||||
switch.set_sensitive(True)
|
switch.set_sensitive(True)
|
||||||
switch.set_state(False)
|
switch.set_state(False)
|
||||||
switch.set_active(False)
|
switch.set_active(False)
|
||||||
proc = fn.get_pacman_process()
|
proc = get_pacman_process()
|
||||||
message_dialog = MessageDialog(
|
message_dialog = MessageDialog(
|
||||||
"Warning",
|
"Warning",
|
||||||
"Unable to proceed, pacman lock found!",
|
"Unable to proceed, pacman lock found!",
|
||||||
"Pacman is unable to lock the database inside: %s" % fn.pacman_lockfile,
|
"Pacman is unable to lock the database inside: %s" % pacman_lockfile,
|
||||||
"Pacman is processing: %s" % proc,
|
"Pacman is processing: %s" % proc,
|
||||||
"warning",
|
"warning",
|
||||||
False,
|
False,
|
||||||
|
@@ -51,7 +51,7 @@ class Main(Gtk.Window):
|
|||||||
# let's give a focus on search entry * set "ctrl + f"
|
# 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.key_press_event)
|
||||||
self.timeout_id = None
|
self.timeout_id = None
|
||||||
self.display_version = False # Bool
|
self.display_versions = False # Bool
|
||||||
self.search_activated = False
|
self.search_activated = False
|
||||||
self.display_package_progress = False
|
self.display_package_progress = False
|
||||||
print("******************************************************")
|
print("******************************************************")
|
||||||
|
Reference in New Issue
Block a user