Commit bb68a1c9 authored by Kateryna Kostiuk's avatar Kateryna Kostiuk Committed by Andreas Traczyk

UI/UX: do not open multiple preferences windows.

Change-Id: I67b485dfed7ff75497ff15e32bc125038335b3e3
Reviewed-by: Andreas Traczyk's avatarAndreas Traczyk <>
parent af6d5e20
......@@ -321,6 +321,10 @@ NSString* const kChangeAccountToolBarItemIdentifier = @"ChangeAccountToolBarIte
- (IBAction)openPreferences:(id)sender
if (preferencesWC) {
[preferencesWC.window orderFront:preferencesWC.window];
preferencesWC = [[PreferencesWC alloc] initWithNibName:@"PreferencesWindow" bundle: nil model:&(lrc_->getDataTransferModel())];
[preferencesWC.window makeKeyAndOrderFront:preferencesWC.window];
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