[chronojump] Fixed weird glitch on weirder macs when importing before load session
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Fixed weird glitch on weirder macs when importing before load session
- Date: Wed, 1 Jul 2020 16:18:47 +0000 (UTC)
commit de3ea4c55191af0d71d5881b872ab9fab7965ee2
Author: Xavier de Blas <xaviblas gmail com>
Date: Wed Jul 1 18:13:58 2020 +0200
Fixed weird glitch on weirder macs when importing before load session
src/gui/app1/session/loadAndImport.cs | 14 ++++++++++++++
1 file changed, 14 insertions(+)
---
diff --git a/src/gui/app1/session/loadAndImport.cs b/src/gui/app1/session/loadAndImport.cs
index 3f605d79..3cec372c 100644
--- a/src/gui/app1/session/loadAndImport.cs
+++ b/src/gui/app1/session/loadAndImport.cs
@@ -68,6 +68,20 @@ public partial class ChronoJumpWindow
private void app1s_initializeGui()
{
+ /*
+ * need these two lines for macOS because there are strange glitches if we do not put them
here
+ * eg. if we start Chronojump and try to import without having done this first:
+ * app1s_notebook.CurrentPage = app1s_PAGE_SELECT_SESSION;
+ * then import buttons do not work.
+ * And if we do not do:
+ * app1s_notebook.CurrentPage = app1s_PAGE_IMPORT_START;
+ * before load session, buttons are displaced.
+ * All gets fixed resizing a bit the windows, but using Visible=true or .Show() does not
solve the problem.
+ * So we need these (or destroy all the mac computers on the planet).
+ */
+ app1s_notebook.CurrentPage = app1s_PAGE_SELECT_SESSION;
+ app1s_notebook.CurrentPage = app1s_PAGE_IMPORT_START;
+
if (app1s_type == app1s_windowType.LOAD_SESSION) {
app1s_file_path_import.Visible = false;
app1s_notebook_load_button_animation.Visible = true;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]