Add allow_automatic_tabbing task to runtime::window#2933
Add allow_automatic_tabbing task to runtime::window#2933hecrj merged 1 commit intoiced-rs:masterfrom
allow_automatic_tabbing task to runtime::window#2933Conversation
|
This belongs in platform specific settings:
|
|
Hmm, I think/thought this was an application-wide setting for allowing tabbing in windows (although it is under P.S. To clarify, the tab-bar can be shown/hidden per window, the tabbing itself is a property of the application. Thus |
|
See https://docs.iced.rs/iced/window/struct.Settings.html#structfield.platform_specific Which is what @dtzxporter was referring to in his previous comment Also thanks for your work on this and menu bars in general. As a user, I truly appreciate it. |
Thanks, I think you may have missed my point, the link and the @dtzxporter comment references window specific settings, which I am aware of. This is not a window specific setting, it is an application-wide setting. |
In this case you'd ideally create a |
43a707b to
21168d9
Compare
Co-authored-by: Karolis Ramanauskas <karolisr@gmail.com>
21168d9 to
aef64e5
Compare
hecrj
left a comment
There was a problem hiding this comment.
Thanks!
I just made it a Task in the window module.
allows_automatic_window_tabbing on macOS.allow_automatic_tabbing task to runtime::window
macOS intrusively adds certain global menu items if a certain menu item is present and if the underlying feature of the
AppKitis enabled. For example, if aViewglobal menu item is present and theallowsAutomaticWindowTabbingvalue is set totrue, theShow/Hide Tab Baritem is added to theViewsubmenu (see images). By default,allowsAutomaticWindowTabbingis set totrue. This makes any application with aViewmenu item the ability to show/hide potentially useless tab bar. See attached images that show the described menu item and the tab bar in the window.This PR exposes this setting in
settings::Settings(core/src/settings.rs) and applies it iniced_winit::runfunction.