rename get_session -> session_get

This commit is contained in:
csf
2022-08-16 15:22:57 +08:00
parent 1b5075168e
commit 53b69b59a8
6 changed files with 27 additions and 27 deletions

View File

@ -312,7 +312,7 @@ class FfiModel with ChangeNotifier {
}
} else {
_touchMode =
await bind.getSessionOption(id: peerId, arg: "touch-mode") != '';
await bind.sessionGetOption(id: peerId, arg: "touch-mode") != '';
}
if (evt['is_file_transfer'] == "true") {
@ -471,7 +471,7 @@ class CanvasModel with ChangeNotifier {
double get tabBarHeight => _tabBarHeight;
void updateViewStyle() async {
final style = await bind.getSessionOption(id: id, arg: 'view-style');
final style = await bind.sessionGetOption(id: id, arg: 'view-style');
if (style == null) {
return;
}
@ -517,7 +517,7 @@ class CanvasModel with ChangeNotifier {
}
updateScrollStyle() async {
final style = await bind.getSessionOption(id: id, arg: 'scroll-style');
final style = await bind.sessionGetOption(id: id, arg: 'scroll-style');
if (style == 'scrollbar') {
_scrollStyle = ScrollStyle.scrollbar;
_scrollX = 0.0;
@ -863,7 +863,7 @@ class QualityMonitorModel with ChangeNotifier {
QualityMonitorData get data => _data;
checkShowQualityMonitor(String id) async {
final show = await bind.getSessionToggleOption(
final show = await bind.sessionGetToggleOption(
id: id, arg: 'show-quality-monitor') ==
true;
if (_show != show) {