Add support for config reset
This commit is contained in:
@@ -86,6 +86,9 @@ void destroy_card_window(struct alsa_card *card) {
|
||||
gtk_window_destroy(GTK_WINDOW(card->window_levels));
|
||||
if (card->window_startup)
|
||||
gtk_window_destroy(GTK_WINDOW(card->window_startup));
|
||||
if (card->window_modal) {
|
||||
gtk_window_destroy(GTK_WINDOW(card->window_modal));
|
||||
}
|
||||
|
||||
// disable the level meter timer source
|
||||
if (card->meter_gsource_timer)
|
||||
@@ -95,3 +98,8 @@ void destroy_card_window(struct alsa_card *card) {
|
||||
window_count--;
|
||||
create_no_card_window();
|
||||
}
|
||||
|
||||
void check_modal_window_closed(void) {
|
||||
if (!window_count)
|
||||
gtk_widget_set_visible(no_cards_window, TRUE);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user