mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-24 12:39:37 +00:00
18 lines
430 B
Dart
18 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;
|
|
}
|
|
}
|