mirror of
https://github.com/Snigdha-OS/snigdhaos-blackbox.git
synced 2025-09-22 12:35:03 +02:00
add show_lockfile_message_dialog()
This commit is contained in:

committed by
GitHub

parent
be264e1fb0
commit
03a2abf7dc
@@ -503,3 +503,18 @@ class Main(Gtk.Window): # Basic OOPS Concept
|
|||||||
# self.gui.queue_redraw()
|
# self.gui.queue_redraw()
|
||||||
# self.gui.show_all()
|
# self.gui.show_all()
|
||||||
|
|
||||||
|
def show_lockfile_message_dialog(self):
|
||||||
|
proc = fn.get_pacman_process()
|
||||||
|
message_dialog = MessageDialog(
|
||||||
|
"Warning",
|
||||||
|
"Blackbox cannot proceed pacman lockfile found",
|
||||||
|
"Pacman cannot lock the db, a lockfile is found inside %s"
|
||||||
|
% fn.pacman_lockfile,
|
||||||
|
"Process running = %s" % proc,
|
||||||
|
"warning",
|
||||||
|
False,
|
||||||
|
)
|
||||||
|
message_dialog.show_all()
|
||||||
|
message_dialog.run()
|
||||||
|
message_dialog.hide()
|
||||||
|
message_dialog.destroy()
|
Reference in New Issue
Block a user