Преглед изворни кода

tools: present() dialog to give it focus

Daniele Bartolini пре 1 година
родитељ
комит
c4f366abd1
2 измењених фајлова са 3 додато и 0 уклоњено
  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.
 * Fixed importing resources in the source directory's root asking for destination directory.
 * Improved revealing a resource in the Project Browser.
+* Fixed some dialogs not getting focus when opened after the first time.
 
 **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_position(Gtk.WindowPosition.CENTER_ON_PARENT);
 		_preferences_dialog.show_all();
+		_preferences_dialog.present();
 	}
 
 	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.present();
 	}
 
 	private int run_level_changed_dialog(Gtk.Window? parent)