mirror of
https://github.com/itay-grudev/SingleApplication.git
synced 2025-01-15 17:02:06 +08:00
Bug Fix Calculator example not raising it's window on Windows
This commit is contained in:
parent
4841681918
commit
8892a54e12
@ -60,12 +60,10 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
Calculator calc;
|
Calculator calc;
|
||||||
|
|
||||||
QObject::connect(
|
QObject::connect( &app, &SingleApplication::instanceStarted, [ &calc ]() {
|
||||||
&app,
|
calc.raise();
|
||||||
&SingleApplication::instanceStarted,
|
calc.activateWindow();
|
||||||
&calc,
|
});
|
||||||
&Calculator::raise
|
|
||||||
);
|
|
||||||
|
|
||||||
calc.show();
|
calc.show();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user