File tree Expand file tree Collapse file tree 4 files changed +5
-11
lines changed Expand file tree Collapse file tree 4 files changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -1073,7 +1073,7 @@ void ScriptableProxy::exit()
10731073void ScriptableProxy::close ()
10741074{
10751075 INVOKE2 (close, ());
1076- m_wnd->close ();
1076+ m_wnd->hideWindow ();
10771077}
10781078
10791079bool ScriptableProxy::focusPrevious ()
Original file line number Diff line number Diff line change @@ -430,6 +430,8 @@ class TestInterfaceImpl final : public TestInterface {
430430 settings.beginGroup (" Options" );
431431 settings.setValue ( Config::clipboard_tab::name (), clipboardTabName );
432432 settings.setValue ( Config::close_on_unfocus::name (), false );
433+ // Hide the main window even if there is no tray or minimize support.
434+ settings.setValue ( Config::hide_main_window::name (), true );
433435 // Exercise limiting rows in Process Manager dialog when testing.
434436 settings.setValue ( Config::max_process_manager_rows::name (), 4 );
435437 settings.endGroup ();
Original file line number Diff line number Diff line change @@ -48,8 +48,7 @@ private slots:
4848
4949 void commandVisible ();
5050 void commandToggle ();
51- void commandHide ();
52- void commandShow ();
51+ void commandShowHide ();
5352 void commandShowAt ();
5453 void commandFocused ();
5554
Original file line number Diff line number Diff line change @@ -137,14 +137,7 @@ void Tests::commandToggle()
137137 WAIT_ON_OUTPUT (" visible" , " true\n " );
138138}
139139
140- void Tests::commandHide ()
141- {
142- RUN (" visible" , " true\n " );
143- RUN (" hide" , " " );
144- WAIT_ON_OUTPUT (" visible" , " false\n " );
145- }
146-
147- void Tests::commandShow ()
140+ void Tests::commandShowHide ()
148141{
149142 RUN (" visible" , " true\n " );
150143 RUN (" hide" , " " );
You can’t perform that action at this time.
0 commit comments