Explorar el Código

tools: present() dialog to give it focus

Daniele Bartolini hace 1 año
padre
commit
c4f366abd1
Se han modificado 2 ficheros con 3 adiciones y 0 borrados
  1. 1 0
      docs/changelog.rst
  2. 2 0
      tools/level_editor/level_editor.vala

+ 1 - 0
docs/changelog.rst

@@ -16,6 +16,7 @@ Changelog
 * Added thumbnails for .unit, .material, .texture and .sound resources in the Project Browser.
 * Added thumbnails for .unit, .material, .texture and .sound resources in the Project Browser.
 * Fixed importing resources in the source directory's root asking for destination directory.
 * Fixed importing resources in the source directory's root asking for destination directory.
 * Improved revealing a resource in the Project Browser.
 * Improved revealing a resource in the Project Browser.
+* Fixed some dialogs not getting focus when opened after the first time.
 
 
 **Runtime**
 **Runtime**
 
 

+ 2 - 0
tools/level_editor/level_editor.vala

@@ -2067,6 +2067,7 @@ public class LevelEditorApplication : Gtk.Application
 		_preferences_dialog.set_transient_for(this.active_window);
 		_preferences_dialog.set_transient_for(this.active_window);
 		_preferences_dialog.set_position(Gtk.WindowPosition.CENTER_ON_PARENT);
 		_preferences_dialog.set_position(Gtk.WindowPosition.CENTER_ON_PARENT);
 		_preferences_dialog.show_all();
 		_preferences_dialog.show_all();
+		_preferences_dialog.present();
 	}
 	}
 
 
 	private void on_deploy(GLib.SimpleAction action, GLib.Variant? param)
 	private void on_deploy(GLib.SimpleAction action, GLib.Variant? param)
@@ -2079,6 +2080,7 @@ public class LevelEditorApplication : Gtk.Application
 		}
 		}
 
 
 		_deploy_dialog.show_all();
 		_deploy_dialog.show_all();
+		_deploy_dialog.present();
 	}
 	}
 
 
 	private int run_level_changed_dialog(Gtk.Window? parent)
 	private int run_level_changed_dialog(Gtk.Window? parent)