Compare commits
2 commits
87b26de0c8
...
0f62f07c97
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0f62f07c97 | ||
|
|
224146529c |
3 changed files with 15 additions and 0 deletions
1
SMS-Exchange-Linux-GUI
Submodule
1
SMS-Exchange-Linux-GUI
Submodule
|
|
@ -0,0 +1 @@
|
|||
Subproject commit d1146046c0a222d1c278cda5c8852980d79ddd23
|
||||
|
|
@ -1491,6 +1491,7 @@ class MenuPage(Page):
|
|||
("edit_profile", self.edit_prof, (540, 440, 110, 60)),
|
||||
# ("delete_profile", self.delete_profile, (670, 440, 110, 60)),
|
||||
("launch", self.launch, (0, 440, 185, 63)),
|
||||
("p2p_request", self.request_func, (10, 433, 185, 73)),
|
||||
("disconnect", self.disconnect, (200, 433, 185, 73)),
|
||||
("disconnect_system_wide", self.disconnect, (200, 433, 185, 73)),
|
||||
("just", self.connect, (200, 433, 185, 73)),
|
||||
|
|
@ -1505,6 +1506,8 @@ class MenuPage(Page):
|
|||
boton.setIconSize(boton.size())
|
||||
boton.clicked.connect(functools.partial(function))
|
||||
boton.setEnabled(False)
|
||||
if icon_name == "p2p_request":
|
||||
self.request_button = boton
|
||||
if icon_name == "disconnect":
|
||||
boton.setEnabled(True)
|
||||
boton.setVisible(False)
|
||||
|
|
@ -1555,6 +1558,15 @@ class MenuPage(Page):
|
|||
else:
|
||||
pass
|
||||
|
||||
def request_func(self):
|
||||
if hasattr(self, 'reverse_id'):
|
||||
profile_id = self.reverse_id
|
||||
project_root = os.path.dirname(
|
||||
os.path.dirname(os.path.abspath(__file__)))
|
||||
script_path = os.path.join(
|
||||
project_root, 'SMS-Exchange-Linux-GUI', 'GUI.py')
|
||||
subprocess.Popen([sys.executable, script_path, str(profile_id)])
|
||||
|
||||
def delete_status_update(self, text):
|
||||
self.update_status.update_status(text)
|
||||
self.eliminacion()
|
||||
|
|
@ -1990,6 +2002,8 @@ class MenuPage(Page):
|
|||
|
||||
profile = self.profile_info.get(profile_name)
|
||||
self.boton_launch.setEnabled(True)
|
||||
if hasattr(self, 'request_button'):
|
||||
self.request_button.setEnabled(True)
|
||||
self.boton_just.setEnabled(True)
|
||||
self.boton_just_session.setEnabled(True)
|
||||
self.boton_create.setEnabled(True)
|
||||
|
|
|
|||
BIN
gui/resources/images/p2p_request.png
Normal file
BIN
gui/resources/images/p2p_request.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 7.2 KiB |
Loading…
Reference in a new issue