-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature: Introduce pref mail.startupMinimized. (Issue #140).
- Loading branch information
1 parent
7f4eb04
commit 1dbc3cd
Showing
2 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# HG changeset patch | ||
# User Betterbird <[email protected]> | ||
# Date 1681586624 -7200 | ||
# Parent 37650153e0cc41085d858f36248b1b8ec96e2f15 | ||
Feature: Introduce pref mail.startupMinimized. | ||
|
||
diff --git a/mail/app/profile/all-thunderbird.js b/mail/app/profile/all-thunderbird.js | ||
--- a/mail/app/profile/all-thunderbird.js | ||
+++ b/mail/app/profile/all-thunderbird.js | ||
@@ -1338,8 +1338,9 @@ pref("app.donation.eoy.version.viewed", | ||
pref("betterbird.donation.eoy.version", 2022); | ||
pref("betterbird.donation.eoy.version.viewed", 0); | ||
pref("betterbird.donation.eoy.url", "https://www.betterbird.eu/end-of-year/"); | ||
|
||
// Make this visible in the advanced preferences. | ||
pref("ui.prefersReducedMotion", 0); | ||
|
||
pref("mail.multiselect_message_shows_current", false); | ||
+pref("mail.startupMinimized", false); | ||
diff --git a/mail/base/content/msgMail3PaneWindow.js b/mail/base/content/msgMail3PaneWindow.js | ||
--- a/mail/base/content/msgMail3PaneWindow.js | ||
+++ b/mail/base/content/msgMail3PaneWindow.js | ||
@@ -669,16 +669,20 @@ var gMailInit = { | ||
* Delayed startup happens after the first paint of the window. Anything | ||
* that can be delayed until after paint, should be to help give the | ||
* illusion that Thunderbird is starting faster. | ||
* | ||
* Note: this only runs for the main 3 pane window. | ||
*/ | ||
_delayedStartup() { | ||
this._cancelDelayedStartup(); | ||
+ if (!Services.appinfo.inSafeMode && | ||
+ Services.prefs.getBoolPref("mail.startupMinimized", false)) { | ||
+ window.minimize(); | ||
+ } | ||
|
||
MailOfflineMgr.init(); | ||
|
||
initOpenPGPIfEnabled(); | ||
|
||
PanelUI.init(); | ||
gExtensionsNotifications.init(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters