mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-12-12 19:17:58 +00:00
plugin_framework, support log callback
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
@@ -51,6 +51,11 @@ class LocationModel with ChangeNotifier {
|
||||
notifyListeners();
|
||||
}
|
||||
|
||||
void remove(PluginId id) {
|
||||
pluginModels.remove(id);
|
||||
notifyListeners();
|
||||
}
|
||||
|
||||
bool get isEmpty => pluginModels.isEmpty;
|
||||
}
|
||||
|
||||
@@ -68,7 +73,7 @@ PluginModel? getPluginModel(String location, PluginId id) =>
|
||||
|
||||
void clearPlugin(PluginId pluginId) {
|
||||
for (var element in _locationModels.values) {
|
||||
element.pluginModels.remove(pluginId);
|
||||
element.remove(pluginId);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user