mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-08-20 05:21:36 +08:00
rename get_session -> session_get
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user