mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-10-27 04:35:34 +08:00
Fix crash caused by the release of screen capturer
This commit is contained in:
@@ -55,6 +55,12 @@ class MainWindow {
|
||||
int SaveSettingsIntoCacheFile();
|
||||
int LoadSettingsIntoCacheFile();
|
||||
|
||||
int StartScreenCapture();
|
||||
int StopScreenCapture();
|
||||
|
||||
int StartMouseControl();
|
||||
int StopMouseControl();
|
||||
|
||||
private:
|
||||
typedef struct {
|
||||
char password[7];
|
||||
@@ -157,6 +163,12 @@ class MainWindow {
|
||||
int video_quality_button_value_ = 0;
|
||||
int language_button_value_last_ = 0;
|
||||
int video_quality_button_value_last_ = 0;
|
||||
|
||||
private:
|
||||
std::atomic<bool> start_screen_capture_{false};
|
||||
std::atomic<bool> start_mouse_control_{false};
|
||||
std::atomic<bool> screen_capture_is_started_{false};
|
||||
std::atomic<bool> mouse_control_is_started_{false};
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user