"Document type" dialog can be opened multiple times with no apparent benefit
System information
Arch Linux, Linux my-system 6.4.1-arch2-1 #1 SMP PREEMPT_DYNAMIC Tue, 04 Jul 2023 08:39:40 +0000 x86_64 GNU/Linu
Package version: gnome-text-editor-44.0-2
Text Editor (44.0)
GLib: 2.76.3 (2.76.3)
GTK: 4.10.4 (4.10.4)
GtkSourceView: 5.8.0 (5.8.0)
Libadwaita: 1.3.3 (1.3.3)
Enchant2: 2.3.4
gtk-theme-name: Adwaita-empty
GTK_THEME: unset
GdkDisplay: GdkWaylandDisplay
Documents Directory: /home/my-user/Documents
org.gnome.TextEditor restore-session = false [default=true]
org.gnome.TextEditor recolor-window = true
org.gnome.TextEditor show-map = false
org.gnome.TextEditor custom-font = 'Monospace 11'
org.gnome.TextEditor show-line-numbers = true [default=false]
org.gnome.TextEditor style-scheme = 'Adwaita-dark' [default='Adwaita']
org.gnome.TextEditor wrap-text = false [default=true]
org.gnome.TextEditor style-variant = 'follow'
org.gnome.TextEditor indent-style = 'tab'
org.gnome.TextEditor show-right-margin = true [default=false]
org.gnome.TextEditor spellcheck = false [default=true]
org.gnome.TextEditor auto-indent = true
org.gnome.TextEditor use-system-font = true
org.gnome.TextEditor keybindings = 'default'
org.gnome.TextEditor highlight-current-line = true [default=false]
org.gnome.TextEditor last-save-directory = ''
org.gnome.TextEditor auto-save-delay = uint32 3
org.gnome.TextEditor discover-settings = true
org.gnome.TextEditor enable-snippets = false
org.gnome.TextEditor line-height = 1.2
org.gnome.TextEditor indent-width = -1
org.gnome.TextEditor show-grid = false
org.gnome.TextEditor draw-spaces = @as []
org.gnome.TextEditor right-margin-position = uint32 80
org.gnome.TextEditor tab-width = uint32 4 [default=uint32 8]
Nightly not tested, would require investing more time to figure out how than I am currently willing to spend on this issue.
Bug information
Steps to reproduce
- Open GNOME Text Editor
- In the title bar, click the settings icon to expand the settings drop-down menu
- In the drop-down menu, click "Document Type" to open the "Document Type" dialog
- While the non-modal dialog is open, do the preceding two steps again; another "Document Type" dialog is shown
Current behaviour
It is possible to open more than one "Document Type" dialog, which seems unintentional behavior as it does not provide more options to the user compared to having only a single such dialog.
Having more than one such dialog open may lead to a confusing user experience.
Expected behaviour
When the user attempts to open a second "Document type" dialog, instead of another such dialog being shown the already-open dialog should receive the window focus.