Closed Bug 383959 Opened 17 years ago Closed 17 years ago

Remember last preference pane across quit/relaunch

Categories

(Camino Graveyard :: Preferences, defect, P3)

x86
macOS
defect

Tracking

(Not tracked)

RESOLVED FIXED
Camino1.6

People

(Reporter: stuart.morgan+bugzilla, Assigned: froodian)

Details

(Keywords: fixed1.8.1.8)

Attachments

(1 file)

Standard/HIG behavior is to remember the last-used preference pane and always open that one again, so we should be doing that. (I thought we had this filed, but I don't see it anywhere.)
Pulling some prefPane polish bugs to 1.6 as well, per roadmap discussions.
Priority: -- → P3
Target Milestone: --- → Camino1.6
Assignee: nobody → froodian
Attached patch Patch v1Splinter Review
Does the deed.
Attachment #278877 - Flags: review?
Attachment #278877 - Flags: review? → review?(peter.a.jaros)
Comment on attachment 278877 [details] [diff] [review]
Patch v1

> - (void)selectPreferencePaneByIdentifier:(NSString *)identifier
> {
>   NSBundle *bundle = [NSBundle bundleWithIdentifier:identifier];
>+
>+  // If we can't find the identifier, select the default pane
>+  if (!bundle) {
>+    identifier = kDefaultPaneIdentifier;
>+    bundle = [NSBundle bundleWithIdentifier:identifier];
>+  }
>   
>-  if (bundle && ![mCurrentPaneIdentifier isEqualToString:identifier])
>+  if (![mCurrentPaneIdentifier isEqualToString:identifier])

In the original, we handled a failure to load the General pane; after the patch we assume it works.  On the other hand, it looks like the rest of the method deals with a nil bundle pretty well, and it mostly results in an error message.  I'm inclined to let it go, unless you or someone else has a better way to handle it, but I thought it was worth pointing out.

Beyond that, everything looks solid.  r+.
Attachment #278877 - Flags: review?(peter.a.jaros) → review+
Attachment #278877 - Flags: superreview?(stuart.morgan)
Comment on attachment 278877 [details] [diff] [review]
Patch v1

sr=smorgan
Attachment #278877 - Flags: superreview?(stuart.morgan) → superreview+
Whoops, this patch seems to have fallen through the cracks. Landed on trunk and MOZILLA_1_8_BRANCH.

Of course, I remembered that I forgot to attribute the patch a few seconds after committing, rather than before. Sorry Ian :(
Status: NEW → RESOLVED
Closed: 17 years ago
Keywords: fixed1.8.1.8
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: