Skip to content

Commit

Permalink
[FB] Core | Rename config name
Browse files Browse the repository at this point in the history
  • Loading branch information
surapunoyousei committed Mar 16, 2024
1 parent c90bccc commit 789a23c
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 14 deletions.
2 changes: 1 addition & 1 deletion browser/base/content/browser.js
Expand Up @@ -2387,7 +2387,7 @@ var gBrowserInit = {
"resource:///modules/FloorpAppConstants.sys.mjs"
);

if (FloorpAppConstants.FLOORP_PRIVATE_COMPONENTS_ENABLED) {
if (FloorpAppConstants.FLOORP_OFFICIAL_COMPONENTS_ENABLED) {
if (uri) {
try {
// If the URI has "?FloorpEnableSSBWindow=true" at the end, The window will be opened as a SSB window.
Expand Down
8 changes: 6 additions & 2 deletions browser/base/content/browser.xhtml
Expand Up @@ -149,8 +149,12 @@
#include unified-extensions-viewcache.inc.xhtml

#include ../../../floorp/browser/base/content/browser-manager-sidebar-context.inc.xhtml
#include ../../../floorp/browser/base/content/browser-ssb-context.inc.xhtml
#include ../../../floorp/browser/base/content/browser-workspaces-context-menu.xhtml

#ifdef FLOORP_OFFICIAL_COMPONENTS_ENABLED
#include ../../../floorp/Floorp-private-components/browser/base/content/browser-ssb-context.inc.xhtml
#include ../../../floorp/Floorp-private-components/browser/base/content/browser-workspaces-context-menu.xhtml
#endif


<html:dialog id="window-modal-dialog" style="visibility: hidden; height: 0; width: 0"/>
<html:template id="window-modal-dialog-template">
Expand Down
6 changes: 3 additions & 3 deletions browser/base/content/tabbrowser.js
Expand Up @@ -3169,7 +3169,7 @@
"resource:///modules/FloorpAppConstants.sys.mjs"
);

if (FloorpAppConstants.FLOORP_PRIVATE_COMPONENTS_ENABLED) {
if (FloorpAppConstants.FLOORP_OFFICIAL_COMPONENTS_ENABLED) {
floorpWorkspaceId = tabData.floorpWorkspaceId;
floorpLastShowWorkspaceId = tabData.floorpLastShowWorkspaceId;
floorpWorkspace = tabData.floorpWorkspace ? tabData.floorpWorkspace : Services.prefs.getStringPref("floorp.browser.workspace.all").split(",")[0];
Expand All @@ -3191,7 +3191,7 @@
tab = this.selectedTab;
tab.setAttribute("floorpWorkspace", floorpWorkspace);

if (FloorpAppConstants.FLOORP_PRIVATE_COMPONENTS_ENABLED) {
if (FloorpAppConstants.FLOORP_OFFICIAL_COMPONENTS_ENABLED) {
let { WorkspacesService } = ChromeUtils.importESModule(
"resource:///modules/WorkspacesService.sys.mjs"
);
Expand Down Expand Up @@ -3260,7 +3260,7 @@

tab.setAttribute("floorpWorkspace", floorpWorkspace);

if (FloorpAppConstants.FLOORP_PRIVATE_COMPONENTS_ENABLED) {
if (FloorpAppConstants.FLOORP_OFFICIAL_COMPONENTS_ENABLED) {
let { WorkspacesService } = ChromeUtils.importESModule(
"resource:///modules/WorkspacesService.sys.mjs"
);
Expand Down
2 changes: 1 addition & 1 deletion browser/components/preferences/preferences.js
Expand Up @@ -230,7 +230,7 @@ function init_all() {
);


if (FloorpAppConstants.FLOORP_PRIVATE_COMPONENTS_ENABLED) {
if (FloorpAppConstants.FLOORP_OFFICIAL_COMPONENTS_ENABLED) {
register_module("paneCSK", gCSKPane)
register_module("paneWorkspaces", gWorkspacesPane);
register_module("paneSsb", gSsbPane);
Expand Down
6 changes: 3 additions & 3 deletions browser/components/preferences/preferences.xhtml
Expand Up @@ -115,7 +115,7 @@
<label class="category-name" flex="1" data-l10n-id="pane-BSB-title"></label>
</richlistitem>

#ifdef FLOORP_PRIVATE_COMPONENTS_ENABLED
#ifdef FLOORP_OFFICIAL_COMPONENTS_ENABLED
<richlistitem id="category-workspaces"
class="category"
value="paneWorkspaces"
Expand All @@ -137,7 +137,7 @@
<image class="category-icon"/>
<label class="category-name" flex="1" data-l10n-id="files-and-applications-title"></label>
</richlistitem>
#ifdef FLOORP_PRIVATE_COMPONENTS_ENABLED
#ifdef FLOORP_OFFICIAL_COMPONENTS_ENABLED
<richlistitem id="category-CSK"
class="category"
value="paneCSK"
Expand Down Expand Up @@ -307,7 +307,7 @@
#include ../../../floorp/browser/components/preferences/design.inc.xhtml
#include ../../../floorp/browser/components/preferences/lepton.inc.xhtml

#ifdef FLOORP_PRIVATE_COMPONENTS_ENABLED
#ifdef FLOORP_OFFICIAL_COMPONENTS_ENABLED
#include ../../../floorp/browser/components/preferences/csk.inc.xhtml
#include ../../../floorp/browser/components/preferences/ssb.inc.xhtml
#include ../../../floorp/browser/components/preferences/workspaces.inc.xhtml
Expand Down
4 changes: 2 additions & 2 deletions browser/components/sessionstore/SessionStore.sys.mjs
Expand Up @@ -4083,7 +4083,7 @@ var SessionStoreInternal = {
var { FloorpAppConstants } = ChromeUtils.importESModule(
"resource:///modules/FloorpAppConstants.sys.mjs"
);
if (FloorpAppConstants.FLOORP_PRIVATE_COMPONENTS_ENABLED) {
if (FloorpAppConstants.FLOORP_OFFICIAL_COMPONENTS_ENABLED) {
let windowUuid = aWindow.gWorkspaces._windowId;
if (windowUuid) {
winData.windowUuid = windowUuid;
Expand Down Expand Up @@ -5330,7 +5330,7 @@ var SessionStoreInternal = {
"resource:///modules/FloorpAppConstants.sys.mjs"
);

if (FloorpAppConstants.FLOORP_PRIVATE_COMPONENTS_ENABLED) {
if (FloorpAppConstants.FLOORP_OFFICIAL_COMPONENTS_ENABLED) {
let { WorkspacesWindowUuidService } = ChromeUtils.importESModule(
"resource:///modules/WorkspacesService.sys.mjs"
);
Expand Down
2 changes: 1 addition & 1 deletion browser/components/sessionstore/TabState.sys.mjs
Expand Up @@ -111,7 +111,7 @@ var TabStateInternal = {
"resource:///modules/FloorpAppConstants.sys.mjs"
);

if (FloorpAppConstants.FLOORP_PRIVATE_COMPONENTS_ENABLED) {
if (FloorpAppConstants.FLOORP_OFFICIAL_COMPONENTS_ENABLED) {
let { WorkspacesService } = ChromeUtils.importESModule(
"resource:///modules/WorkspacesService.sys.mjs"
);
Expand Down

0 comments on commit 789a23c

Please sign in to comment.