Only have one notification process open at a time (kill previous one when showing new)

This commit is contained in:
dec05eba
2024-10-27 02:00:09 +02:00
parent cfcee1a5d8
commit 28c437e90a
2 changed files with 35 additions and 1 deletions

View File

@@ -50,6 +50,7 @@ namespace gsr {
private:
void process_key_bindings(mgl::Event &event);
void update_notification_process_status();
void update_gsr_process_status();
void update_ui_recording_paused();
@@ -90,6 +91,7 @@ namespace gsr {
bool visible = false;
uint64_t default_cursor = 0;
pid_t gpu_screen_recorder_process = -1;
pid_t notification_process = -1;
std::optional<Config> config;
DropdownButton *replay_dropdown_button_ptr = nullptr;
DropdownButton *record_dropdown_button_ptr = nullptr;