Commit 53799642 authored by Kateryna Kostiuk's avatar Kateryna Kostiuk

account: connect to new lrc function

Change-Id: Ie34be453b1b5b18ae987d51ae00c4f234e4c7a6e
parent be7e2e4a
...@@ -404,10 +404,9 @@ typedef NS_ENUM(NSInteger, TagViews) { ...@@ -404,10 +404,9 @@ typedef NS_ENUM(NSInteger, TagViews) {
- (IBAction)enableAccount: (NSButton *)sender { - (IBAction)enableAccount: (NSButton *)sender {
const auto& account = accountModel->getAccountInfo(self.selectedAccountID); const auto& account = accountModel->getAccountInfo(self.selectedAccountID);
self.accountModel->enableAccount(self.selectedAccountID, !account.enabled); self.accountModel->setAccountEnabled(self.selectedAccountID, !account.enabled);
self.accountEnabled = account.enabled; self.accountEnabled = account.enabled;
lrc::api::account::ConfProperties_t accountProperties = self.accountModel->getAccountConfig(self.selectedAccountID);
self.accountModel->setAccountConfig(self.selectedAccountID, accountProperties);
} }
- (IBAction)removeAccount:(id)sender - (IBAction)removeAccount:(id)sender
......
...@@ -182,10 +182,8 @@ typedef NS_ENUM(NSInteger, TagViews) { ...@@ -182,10 +182,8 @@ typedef NS_ENUM(NSInteger, TagViews) {
- (IBAction)enableAccount: (NSButton *)sender { - (IBAction)enableAccount: (NSButton *)sender {
const auto& account = accountModel->getAccountInfo(self.selectedAccountID); const auto& account = accountModel->getAccountInfo(self.selectedAccountID);
self.accountModel->enableAccount(self.selectedAccountID, !account.enabled); self.accountModel->setAccountEnabled(self.selectedAccountID, !account.enabled);
self.accountEnabled = account.enabled; self.accountEnabled = account.enabled;
lrc::api::account::ConfProperties_t accountProperties = self.accountModel->getAccountConfig(self.selectedAccountID);
self.accountModel->setAccountConfig(self.selectedAccountID, accountProperties);
} }
- (IBAction)removeAccount:(id)sender - (IBAction)removeAccount:(id)sender
......
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