mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 07:45:00 +01:00
Add hidden ui config for close without asking
This commit is contained in:
parent
d7f2c35beb
commit
b4edbae7af
2 changed files with 5 additions and 4 deletions
|
|
@ -52,14 +52,12 @@
|
||||||
#include "trigger_page.h"
|
#include "trigger_page.h"
|
||||||
#include "keyboard.h"
|
#include "keyboard.h"
|
||||||
#include "keyeditor.h"
|
#include "keyeditor.h"
|
||||||
#include "splash.h"
|
|
||||||
#include "rc_option_editor.h"
|
#include "rc_option_editor.h"
|
||||||
#include "route_params_ui.h"
|
#include "route_params_ui.h"
|
||||||
#include "time_info_box.h"
|
#include "time_info_box.h"
|
||||||
#include "trigger_ui.h"
|
#include "trigger_ui.h"
|
||||||
#include "step_entry.h"
|
#include "step_entry.h"
|
||||||
#include "opts.h"
|
#include "opts.h"
|
||||||
#include "utils.h"
|
|
||||||
|
|
||||||
#ifdef GDK_WINDOWING_X11
|
#ifdef GDK_WINDOWING_X11
|
||||||
#include <gdk/gdkx.h>
|
#include <gdk/gdkx.h>
|
||||||
|
|
@ -204,7 +202,9 @@ ARDOUR_UI::tab_window_root_drop (GtkNotebook* src,
|
||||||
bool
|
bool
|
||||||
ARDOUR_UI::idle_ask_about_quit ()
|
ARDOUR_UI::idle_ask_about_quit ()
|
||||||
{
|
{
|
||||||
if (_session && _session->dirty()) {
|
const auto ask_before_closing = UIConfiguration::instance ().get_ask_before_closing_last_window ();
|
||||||
|
|
||||||
|
if ((_session && _session->dirty ()) || !ask_before_closing) {
|
||||||
finish ();
|
finish ();
|
||||||
} else {
|
} else {
|
||||||
/* no session or session not dirty, but still ask anyway */
|
/* no session or session not dirty, but still ask anyway */
|
||||||
|
|
|
||||||
|
|
@ -138,6 +138,7 @@ UI_CONFIG_VARIABLE (bool, show_triggers_inline, "show-triggers-inline", false)
|
||||||
UI_CONFIG_VARIABLE (bool, one_plugin_window_only, "one-plugin-window-only", false)
|
UI_CONFIG_VARIABLE (bool, one_plugin_window_only, "one-plugin-window-only", false)
|
||||||
UI_CONFIG_VARIABLE (int, default_lower_midi_note, "default-lower-midi-note", 60)
|
UI_CONFIG_VARIABLE (int, default_lower_midi_note, "default-lower-midi-note", 60)
|
||||||
UI_CONFIG_VARIABLE (int, default_upper_midi_note, "default-upper-midi-note", 71)
|
UI_CONFIG_VARIABLE (int, default_upper_midi_note, "default-upper-midi-note", 71)
|
||||||
|
UI_CONFIG_VARIABLE (bool, ask_before_closing_last_window, "ask-before-closing-last-window", true)
|
||||||
|
|
||||||
/* these are visibility-type selections in the New Track dialog that we should make persistent for the user's choices */
|
/* these are visibility-type selections in the New Track dialog that we should make persistent for the user's choices */
|
||||||
UI_CONFIG_VARIABLE (bool, show_on_cue_page, "show-on-cue-page", true)
|
UI_CONFIG_VARIABLE (bool, show_on_cue_page, "show-on-cue-page", true)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue