mirror of
https://github.com/MatsuriDayo/nekoray.git
synced 2025-12-18 04:54:38 +03:00
feat: open config folder
This commit is contained in:
@@ -1189,6 +1189,10 @@ End: %2</source>
|
||||
<source>Current server is incompatible with VPN. Please stop the server first, enable VPN mode, and then restart.</source>
|
||||
<translation>当前服务器与 VPN 不兼容。请先停止服务器,打开 VPN 模式后再启动。</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Open Config Folder</source>
|
||||
<translation>打开配置目录</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProxyItem</name>
|
||||
|
||||
@@ -247,7 +247,9 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWi
|
||||
break;
|
||||
}
|
||||
});
|
||||
//
|
||||
|
||||
// Misc menu
|
||||
connect(ui->menu_open_config_folder, &QAction::triggered, this, [=] { QDesktopServices::openUrl(QUrl::fromLocalFile(QDir::currentPath())); });
|
||||
ui->menu_program_preference->addActions(ui->menu_preferences->actions());
|
||||
connect(ui->menu_add_from_clipboard2, &QAction::triggered, ui->menu_add_from_clipboard, &QAction::trigger);
|
||||
connect(ui->actionRestart_Program, &QAction::triggered, this, [=] { MW_dialog_message("", "RestartProgram"); });
|
||||
|
||||
@@ -266,7 +266,7 @@
|
||||
<bool>false</bool>
|
||||
</attribute>
|
||||
<attribute name="verticalHeaderDefaultSectionSize">
|
||||
<number>24</number>
|
||||
<number>26</number>
|
||||
</attribute>
|
||||
<column>
|
||||
<property name="text">
|
||||
@@ -507,6 +507,7 @@
|
||||
<addaction name="menu_routing_settings"/>
|
||||
<addaction name="menu_vpn_settings"/>
|
||||
<addaction name="menu_hotkey_settings"/>
|
||||
<addaction name="menu_open_config_folder"/>
|
||||
</widget>
|
||||
<widget class="QMenu" name="menu_server">
|
||||
<property name="title">
|
||||
@@ -840,6 +841,11 @@
|
||||
<string>Restart Program</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="menu_open_config_folder">
|
||||
<property name="text">
|
||||
<string>Open Config Folder</string>
|
||||
</property>
|
||||
</action>
|
||||
</widget>
|
||||
<customwidgets>
|
||||
<customwidget>
|
||||
|
||||
Reference in New Issue
Block a user