Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
jami-client-macos
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
savoirfairelinux
jami-client-macos
Commits
034eab3e
Commit
034eab3e
authored
4 years ago
by
Kateryna Kostiuk
Browse files
Options
Downloads
Patches
Plain Diff
settings: save parameters only when editing finished
Change-Id: Ieaeb2d40cff9cf34337aae634289004ba37d39f9
parent
24fe631a
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
src/AccAdvancedRingVC.mm
+1
-3
1 addition, 3 deletions
src/AccAdvancedRingVC.mm
src/AccAdvancedSipVC.mm
+1
-3
1 addition, 3 deletions
src/AccAdvancedSipVC.mm
src/AccRingGeneralVC.mm
+4
-3
4 additions, 3 deletions
src/AccRingGeneralVC.mm
src/AccSipGeneralVC.mm
+3
-4
3 additions, 4 deletions
src/AccSipGeneralVC.mm
with
9 additions
and
13 deletions
src/AccAdvancedRingVC.mm
+
1
−
3
View file @
034eab3e
...
...
@@ -122,11 +122,9 @@ const NSInteger BOOTSTRAP_SERVER_TAG = 300;
#pragma mark - NSTextFieldDelegate methods
-
(
void
)
controlTextDid
Cha
ng
e
:(
NSNotification
*
)
notif
-
(
void
)
controlTextDid
EndEditi
ng
:(
NSNotification
*
)
notif
{
NSTextField
*
textField
=
[
notif
object
];
NSRange
test
=
[[
textField
currentEditor
]
selectedRange
];
[
self
valueDidChange
:
textField
];
}
...
...
This diff is collapsed.
Click to expand it.
src/AccAdvancedSipVC.mm
+
1
−
3
View file @
034eab3e
...
...
@@ -354,11 +354,9 @@ NSString *TLS_PROTOCOL_TLSv1_2 = @"TLSv1_2";
#pragma mark - NSTextFieldDelegate methods
-
(
void
)
controlTextDid
Cha
ng
e
:(
NSNotification
*
)
notif
-
(
void
)
controlTextDid
EndEditi
ng
:(
NSNotification
*
)
notif
{
NSTextField
*
textField
=
[
notif
object
];
NSRange
test
=
[[
textField
currentEditor
]
selectedRange
];
[
self
valueDidChange
:
textField
];
}
...
...
This diff is collapsed.
Click to expand it.
src/AccRingGeneralVC.mm
+
4
−
3
View file @
034eab3e
...
...
@@ -297,15 +297,15 @@ typedef NS_ENUM(NSInteger, TagViews) {
#pragma mark - NSTextFieldDelegate delegate methods
-
(
void
)
controlTextDid
Cha
ng
e
:(
NSNotification
*
)
notif
-
(
void
)
controlTextDid
EndEditi
ng
:(
NSNotification
*
)
notif
ication
{
NSTextField
*
textField
=
[
notif
object
];
NSTextField
*
textField
=
[
notif
ication
object
];
if
(
textField
.
tag
!=
DISPLAYNAME
)
{
return
;
}
NSString
*
displayName
=
textField
.
stringValue
;
[
NSObject
cancelPreviousPerformRequestsWithTarget
:
self
];
self
.
accountModel
->
setAlias
(
self
.
selectedAccountID
,
QString
::
fromNSString
(
displayName
));
lrc
::
api
::
account
::
ConfProperties_t
accountProperties
=
self
.
accountModel
->
getAccountConfig
(
self
.
selectedAccountID
);
self
.
accountModel
->
setAccountConfig
(
self
.
selectedAccountID
,
accountProperties
);
...
...
@@ -423,6 +423,7 @@ typedef NS_ENUM(NSInteger, TagViews) {
[
self
.
view
.
window
beginSheet
:
passwordWC
.
window
completionHandler
:
nil
];
}
-
(
IBAction
)
triggerAdwancedSettings
:
(
NSButton
*
)
sender
{
[
self
.
view
.
window
makeFirstResponder
:
nil
];
[
self
.
delegate
triggerAdvancedOptions
];
}
...
...
This diff is collapsed.
Click to expand it.
src/AccSipGeneralVC.mm
+
3
−
4
View file @
034eab3e
...
...
@@ -118,6 +118,7 @@ typedef NS_ENUM(NSInteger, TagViews) {
}
-
(
IBAction
)
triggerAdwancedSettings
:
(
NSButton
*
)
sender
{
[
self
.
view
.
window
makeFirstResponder
:
nil
];
[
self
.
delegate
triggerAdvancedOptions
];
}
...
...
@@ -261,15 +262,13 @@ typedef NS_ENUM(NSInteger, TagViews) {
#pragma mark - NSTextFieldDelegate delegate methods
-
(
void
)
controlTextDid
Cha
ng
e
:(
NSNotification
*
)
notif
-
(
void
)
controlTextDid
EndEditi
ng
:(
NSNotification
*
)
notif
ication
{
NSTextField
*
textField
=
[
notif
object
];
NSTextField
*
textField
=
[
notif
ication
object
];
if
(
textField
.
tag
!=
DISPLAYNAME
)
{
return
;
}
NSString
*
displayName
=
textField
.
stringValue
;
[
NSObject
cancelPreviousPerformRequestsWithTarget
:
self
];
self
.
accountModel
->
setAlias
(
self
.
selectedAccountID
,
QString
::
fromNSString
(
displayName
));
lrc
::
api
::
account
::
ConfProperties_t
accountProperties
=
self
.
accountModel
->
getAccountConfig
(
self
.
selectedAccountID
);
self
.
accountModel
->
setAccountConfig
(
self
.
selectedAccountID
,
accountProperties
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment