mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-21 22:57:31 +09:00
[BASILISK] Port PM Sync Client - Part 4: Tools menu items (Set Up Sync/Sync Now)
This commit is contained in:
parent
a446734d20
commit
fa30be0161
3 changed files with 23 additions and 7 deletions
|
|
@ -438,7 +438,11 @@
|
||||||
label="&toolsMenu.label;"
|
label="&toolsMenu.label;"
|
||||||
accesskey="&toolsMenu.accesskey;"
|
accesskey="&toolsMenu.accesskey;"
|
||||||
onpopupshowing="mirrorShow(this)">
|
onpopupshowing="mirrorShow(this)">
|
||||||
<menupopup id="menu_ToolsPopup">
|
<menupopup id="menu_ToolsPopup"
|
||||||
|
#ifdef MOZ_SERVICES_SYNC
|
||||||
|
onpopupshowing="gSyncUI.updateUI();"
|
||||||
|
#endif
|
||||||
|
>
|
||||||
<menuitem id="menu_openDownloads"
|
<menuitem id="menu_openDownloads"
|
||||||
label="&downloads.label;"
|
label="&downloads.label;"
|
||||||
accesskey="&downloads.accesskey;"
|
accesskey="&downloads.accesskey;"
|
||||||
|
|
@ -449,6 +453,19 @@
|
||||||
accesskey="&addons.accesskey;"
|
accesskey="&addons.accesskey;"
|
||||||
key="key_openAddons"
|
key="key_openAddons"
|
||||||
command="Tools:Addons"/>
|
command="Tools:Addons"/>
|
||||||
|
#ifdef MOZ_SERVICES_SYNC
|
||||||
|
<!-- only one of sync-setup or sync-menu will be showing at once -->
|
||||||
|
<menuitem id="sync-setup"
|
||||||
|
label="&syncSetup.label;"
|
||||||
|
accesskey="&syncSetup.accesskey;"
|
||||||
|
observes="sync-setup-state"
|
||||||
|
oncommand="gSyncUI.openSetup()"/>
|
||||||
|
<menuitem id="sync-syncnowitem"
|
||||||
|
label="&syncSyncNowItem.label;"
|
||||||
|
accesskey="&syncSyncNowItem.accesskey;"
|
||||||
|
observes="sync-syncnow-state"
|
||||||
|
oncommand="gSyncUI.doSync(event);"/>
|
||||||
|
#endif
|
||||||
<menuseparator id="devToolsSeparator"/>
|
<menuseparator id="devToolsSeparator"/>
|
||||||
<menu id="webDeveloperMenu"
|
<menu id="webDeveloperMenu"
|
||||||
label="&webDeveloperMenu.label;"
|
label="&webDeveloperMenu.label;"
|
||||||
|
|
|
||||||
|
|
@ -163,12 +163,13 @@
|
||||||
<!-- A broadcaster of a number of attributes suitable for "sync now" UI -
|
<!-- A broadcaster of a number of attributes suitable for "sync now" UI -
|
||||||
A 'syncstatus' attribute is set while actively syncing, and the label
|
A 'syncstatus' attribute is set while actively syncing, and the label
|
||||||
attribute which changes from "sync now" to "syncing" etc. -->
|
attribute which changes from "sync now" to "syncing" etc. -->
|
||||||
|
#ifdef MOZ_SERVICES_SYNC
|
||||||
<broadcaster id="sync-status"/>
|
<broadcaster id="sync-status"/>
|
||||||
<!-- broadcasters of the "hidden" attribute to reflect setup state for
|
<!-- broadcasters of the "hidden" attribute to reflect setup state for
|
||||||
menus -->
|
menus -->
|
||||||
<broadcaster id="sync-setup-state"/>
|
<broadcaster id="sync-setup-state"/>
|
||||||
<broadcaster id="sync-syncnow-state" hidden="true"/>
|
<broadcaster id="sync-syncnow-state" hidden="true"/>
|
||||||
<broadcaster id="sync-reauth-state" hidden="true"/>
|
#endif
|
||||||
<broadcaster id="workOfflineMenuitemState"/>
|
<broadcaster id="workOfflineMenuitemState"/>
|
||||||
|
|
||||||
<broadcaster id="devtoolsMenuBroadcaster_ErrorConsole"
|
<broadcaster id="devtoolsMenuBroadcaster_ErrorConsole"
|
||||||
|
|
|
||||||
|
|
@ -725,16 +725,14 @@ you can use these alternative items. Otherwise, their values should be empty. -
|
||||||
|
|
||||||
#ifdef MOZ_SERVICES_SYNC
|
#ifdef MOZ_SERVICES_SYNC
|
||||||
<!-- LOCALIZATION NOTE (syncTabsMenu2.label): This appears in the history menu -->
|
<!-- LOCALIZATION NOTE (syncTabsMenu2.label): This appears in the history menu -->
|
||||||
<!ENTITY syncTabsMenu2.label "Tabs From Other Devices">
|
<!ENTITY syncTabsMenu2.label "Tabs From Other Devices">
|
||||||
|
|
||||||
<!ENTITY syncBrand.shortName.label "Sync">
|
<!ENTITY syncBrand.shortName.label "Sync">
|
||||||
|
|
||||||
<!ENTITY syncSignIn.label "Sign In To &syncBrand.shortName.label;…">
|
<!ENTITY syncSetup.label "Set Up &syncBrand.shortName.label;…">
|
||||||
<!ENTITY syncSignIn.accesskey "Y">
|
<!ENTITY syncSetup.accesskey "Y">
|
||||||
<!ENTITY syncSyncNowItem.label "Sync Now">
|
<!ENTITY syncSyncNowItem.label "Sync Now">
|
||||||
<!ENTITY syncSyncNowItem.accesskey "S">
|
<!ENTITY syncSyncNowItem.accesskey "S">
|
||||||
<!ENTITY syncReAuthItem.label "Reconnect to &syncBrand.shortName.label;…">
|
|
||||||
<!ENTITY syncReAuthItem.accesskey "R">
|
|
||||||
<!ENTITY syncToolbarButton.label "Sync">
|
<!ENTITY syncToolbarButton.label "Sync">
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue