gui: unity activation: hide gui before startexternal
This commit is contained in:
parent
f144edfb83
commit
9e29f7d025
@ -431,6 +431,7 @@ void RclMain::viewUrl()
|
|||||||
if (viewer.empty()) {
|
if (viewer.empty()) {
|
||||||
startPreview(doc);
|
startPreview(doc);
|
||||||
} else {
|
} else {
|
||||||
|
hide();
|
||||||
startNativeViewer(doc);
|
startNativeViewer(doc);
|
||||||
// We have a problem here because xdg-open will exit
|
// We have a problem here because xdg-open will exit
|
||||||
// immediately after starting the command instead of waiting
|
// immediately after starting the command instead of waiting
|
||||||
@ -440,7 +441,6 @@ void RclMain::viewUrl()
|
|||||||
// prevent the temp file deletion completely, leaving it
|
// prevent the temp file deletion completely, leaving it
|
||||||
// around forever. Better to let the user save a copy if he
|
// around forever. Better to let the user save a copy if he
|
||||||
// wants I think.
|
// wants I think.
|
||||||
hide();
|
|
||||||
sleep(10);
|
sleep(10);
|
||||||
fileExit();
|
fileExit();
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user