Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add runFcitx5 button #25

Closed
wants to merge 8 commits into from
Closed

add runFcitx5 button #25

wants to merge 8 commits into from

Conversation

chenshijie-uos
Copy link
Contributor

add runFcitx5 button

@@ -41,6 +44,11 @@ void ErrorOverlay::availabilityChanged(bool avail) {
}
}

void ErrorOverlay::runFcitx5()
{
system("fcitx5-autostart");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. Just run fcitx5.
  2. don't use system().
    See how FcitxModule::runFcitx() implement it.

@@ -25,6 +26,8 @@ ErrorOverlay::ErrorOverlay(DBusProvider *dbus, QWidget *parent)
connect(baseWidget_, &QObject::destroyed, this, &QObject::deleteLater);
connect(dbus, &DBusProvider::availabilityChanged, this,
&ErrorOverlay::availabilityChanged);

connect(ui_->pushButton,&QAbstractButton::pressed,this,&ErrorOverlay::runFcitx5);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code is not properly formatted, please run clang-format.

</widget>
</item>
<item>
<widget class="QPushButton" name="pushButton">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe we can have a more descriptive name for this

Copy link
Contributor Author

@chenshijie-uos chenshijie-uos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i close it ,when i changed right , i pr this ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants