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
@ -373,6 +373,8 @@ ARDOUR_UI::apply_window_settings (bool with_size)
|
|||||||
}
|
}
|
||||||
|
|
||||||
XMLProperty const* prop;
|
XMLProperty const* prop;
|
||||||
|
|
||||||
|
if (with_size) {
|
||||||
gint x = -1;
|
gint x = -1;
|
||||||
gint y = -1;
|
gint y = -1;
|
||||||
gint w = -1;
|
gint w = -1;
|
||||||
@ -405,6 +407,7 @@ ARDOUR_UI::apply_window_settings (bool with_size)
|
|||||||
if (w > 0 && h > 0) {
|
if (w > 0 && h > 0) {
|
||||||
_main_window.set_default_size (w, h);
|
_main_window.set_default_size (w, h);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
std::string current_tab;
|
std::string current_tab;
|
||||||
|
|
||||||
@ -414,9 +417,6 @@ ARDOUR_UI::apply_window_settings (bool with_size)
|
|||||||
current_tab = "editor";
|
current_tab = "editor";
|
||||||
}
|
}
|
||||||
|
|
||||||
std::cout << "CURRENT TAB: " << current_tab << "\n";
|
|
||||||
|
|
||||||
|
|
||||||
if (mixer && current_tab == "mixer") {
|
if (mixer && current_tab == "mixer") {
|
||||||
_tabs.set_current_page (_tabs.page_num (mixer->contents()));
|
_tabs.set_current_page (_tabs.page_num (mixer->contents()));
|
||||||
} else if (rc_option_editor && current_tab == "preferences") {
|
} else if (rc_option_editor && current_tab == "preferences") {
|
||||||
|
Loading…
Reference in New Issue
Block a user