mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 23:05:04 +01:00
Amend previous commit (window settings, ignore size)
When loading a session it is preferable to use the window size from Config's instant.xml (local machine screen sizes).
This commit is contained in:
parent
acf13e9498
commit
42cb321039
1 changed files with 28 additions and 28 deletions
|
|
@ -373,6 +373,8 @@ ARDOUR_UI::apply_window_settings (bool with_size)
|
|||
}
|
||||
|
||||
XMLProperty const* prop;
|
||||
|
||||
if (with_size) {
|
||||
gint x = -1;
|
||||
gint y = -1;
|
||||
gint w = -1;
|
||||
|
|
@ -405,6 +407,7 @@ ARDOUR_UI::apply_window_settings (bool with_size)
|
|||
if (w > 0 && h > 0) {
|
||||
_main_window.set_default_size (w, h);
|
||||
}
|
||||
}
|
||||
|
||||
std::string current_tab;
|
||||
|
||||
|
|
@ -414,9 +417,6 @@ ARDOUR_UI::apply_window_settings (bool with_size)
|
|||
current_tab = "editor";
|
||||
}
|
||||
|
||||
std::cout << "CURRENT TAB: " << current_tab << "\n";
|
||||
|
||||
|
||||
if (mixer && current_tab == "mixer") {
|
||||
_tabs.set_current_page (_tabs.page_num (mixer->contents()));
|
||||
} else if (rc_option_editor && current_tab == "preferences") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue