Commit a7b54c86 authored by Saul Ibarra's avatar Saul Ibarra

Updated menu entries

  - Moved Google Contacts item up
  - Renamed 'Purchase PSTN...' with 'Buy PSTN...'
  - Removed 'Use your own domain...'
parent d64793cc
......@@ -648,7 +648,7 @@ class ServerToolsWindow(base_class, ui_class):
view.load_account_page(account, tab='calls')
self.show()
def open_purchase_pstn_access_page(self, account):
def open_buy_pstn_access_page(self, account):
view = self.tab_widget.currentWidget()
account = account or view.account
if account is None or account.server.settings_url is None:
......
......@@ -55,7 +55,7 @@ class MainWindow(base_class, ui_class):
self.sip_server_settings_action.setEnabled(False)
self.search_for_people_action.setEnabled(False)
self.history_on_server_action.setEnabled(False)
self.purchase_pstn_access_action.setEnabled(False)
self.buy_pstn_access_action.setEnabled(False)
self.main_view.setCurrentWidget(self.contacts_panel)
self.contacts_view.setCurrentWidget(self.contact_list_panel)
self.search_view.setCurrentWidget(self.search_list_panel)
......@@ -146,8 +146,7 @@ class MainWindow(base_class, ui_class):
self.sip_server_settings_action.triggered.connect(self._AH_SIPServerSettings)
self.search_for_people_action.triggered.connect(self._AH_SearchForPeople)
self.history_on_server_action.triggered.connect(self._AH_HistoryOnServer)
self.purchase_pstn_access_action.triggered.connect(self._AH_PurchasePstnAccess)
self.internet_domain_action.triggered.connect(partial(QDesktopServices.openUrl, QUrl(u'https://mdns.sipthor.net')))
self.buy_pstn_access_action.triggered.connect(self._AH_PurchasePstnAccess)
self.contact_model.load()
......@@ -327,7 +326,7 @@ class MainWindow(base_class, ui_class):
def _AH_PurchasePstnAccess(self, checked):
account = self.identity.itemData(self.identity.currentIndex()).toPyObject().account
account = account if account is not BonjourAccount() and account.server.settings_url else None
self.server_tools_window.open_purchase_pstn_access_page(account)
self.server_tools_window.open_buy_pstn_access_page(account)
def _SH_AddContactButtonClicked(self, clicked):
model = self.contact_model
......@@ -455,7 +454,7 @@ class MainWindow(base_class, ui_class):
self.sip_server_settings_action.setEnabled(server_tools_enabled)
self.search_for_people_action.setEnabled(server_tools_enabled)
self.history_on_server_action.setEnabled(server_tools_enabled)
self.purchase_pstn_access_action.setEnabled(server_tools_enabled)
self.buy_pstn_access_action.setEnabled(server_tools_enabled)
def _SH_SessionListSelectionChanged(self, selected, deselected):
selected_indexes = selected.indexes()
......
......@@ -1025,17 +1025,15 @@ padding: 2px;</string>
<string>&amp;Tools</string>
</property>
<addaction name="answering_machine_action"/>
<addaction name="google_contacts_action"/>
<addaction name="separator"/>
<addaction name="sip_server_settings_action"/>
<addaction name="search_for_people_action"/>
<addaction name="history_on_server_action"/>
<addaction name="purchase_pstn_access_action"/>
<addaction name="internet_domain_action"/>
<addaction name="buy_pstn_access_action"/>
<addaction name="separator"/>
<addaction name="file_transfers_action"/>
<addaction name="logs_action"/>
<addaction name="separator"/>
<addaction name="google_contacts_action"/>
</widget>
<addaction name="blink_menu"/>
<addaction name="audio_menu"/>
......@@ -1263,14 +1261,9 @@ padding: 2px;</string>
<string>Call history on server...</string>
</property>
</action>
<action name="purchase_pstn_access_action">
<property name="text">
<string>Purchase access to PSTN...</string>
</property>
</action>
<action name="internet_domain_action">
<action name="buy_pstn_access_action">
<property name="text">
<string>Use your Internet domain with Blink...</string>
<string>Buy access to PSTN...</string>
</property>
</action>
</widget>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment