add show_lockfile_message_dialog()

This commit is contained in:
Abhiraj Roy (iconized)
2024-04-26 16:42:16 +05:30
committed by GitHub
parent be264e1fb0
commit 03a2abf7dc

View File

@@ -503,3 +503,18 @@ class Main(Gtk.Window): # Basic OOPS Concept
# self.gui.queue_redraw()
# 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()