mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-24 20:49:28 +00:00
19 lines
430 B
Dart
19 lines
430 B
Dart
|
import 'package:cake_wallet/store/settings_store.dart';
|
||
|
import 'package:mobx/mobx.dart';
|
||
|
|
||
|
part 'tor_view_model.g.dart';
|
||
|
|
||
|
class TorViewModel = TorViewModelBase with _$TorViewModel;
|
||
|
|
||
|
abstract class TorViewModelBase with Store {
|
||
|
|
||
|
TorViewModelBase(this._settingsStore);
|
||
|
|
||
|
final SettingsStore _settingsStore;
|
||
|
|
||
|
@action
|
||
|
Future<void> updateStartOnLaunch(bool value) async {
|
||
|
_settingsStore.shouldStartTorOnLaunch = value;
|
||
|
}
|
||
|
}
|