Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

start capture on launch

  • Loading branch information...
commit 45855557d48b5af17a8373d069318c94a9ec8712 1 parent 0e97280
@iptton iptton authored
Showing with 27 additions and 18 deletions.
  1. +7 −0 mainwindow.cpp
  2. +3 −3 mainwindow.ui
  3. +17 −15 rythem_zh_CN.ts
View
7 mainwindow.cpp
@@ -331,6 +331,7 @@ MainWindow::MainWindow(QWidget *parent) :
QTimer timer;
timer.singleShot(1000,this,SLOT(checkNewVersion()));
//checkNewVersion();
+
}
MainWindow::~MainWindow()
@@ -343,6 +344,8 @@ MainWindow::~MainWindow()
void MainWindow::checkNewVersion(){
+
+ this->toggleCapture();
#ifdef Q_OS_MAC
int n = QSysInfo::MacintoshVersion;
if(n >= 10 && !appPath.startsWith("/Applications/Rythem.app")){
@@ -599,9 +602,13 @@ void MainWindow::toggleProxy(){
#endif
_isUsingCapture = !_isUsingCapture;
if(_isUsingCapture){
+ ui->ActionCapture->setChecked(true);
ui->ActionCapture->setText(tr("stop capture"));
+ ui->ActionCapture->setToolTip(tr("stop capture"));
}else{
+ ui->ActionCapture->setChecked(false);
ui->ActionCapture->setText(tr("start capture"));
+ ui->ActionCapture->setToolTip(tr("start capture"));
}
}
View
6 mainwindow.ui
@@ -101,8 +101,8 @@ background:#dddfe2;
<rect>
<x>0</x>
<y>0</y>
- <width>523</width>
- <height>164</height>
+ <width>63</width>
+ <height>32</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout_3">
@@ -166,7 +166,7 @@ background:#dddfe2;
<x>0</x>
<y>0</y>
<width>818</width>
- <height>22</height>
+ <height>23</height>
</rect>
</property>
</widget>
View
32 rythem_zh_CN.ts
@@ -145,7 +145,7 @@ Host: www.alloyteam.com
<translation type="obsolete">非windows系统需手动设置代理为 127.0.0.1:8889</translation>
</message>
<message>
- <location filename="mainwindow.cpp" line="350"/>
+ <location filename="mainwindow.cpp" line="353"/>
<source>-</source>
<translation>-</translation>
</message>
@@ -154,7 +154,7 @@ Host: www.alloyteam.com
<translation type="obsolete">请了</translation>
</message>
<message>
- <location filename="mainwindow.cpp" line="351"/>
+ <location filename="mainwindow.cpp" line="354"/>
<source>Please drag to Applications dir first
otherwise creat replace rule will cause crash on MacOS 10.8 (Mountain Lion)</source>
@@ -164,49 +164,51 @@ Host: www.alloyteam.com
否则在创建替换规则时 Rythem 会崩溃</translation>
</message>
<message>
- <location filename="mainwindow.cpp" line="359"/>
+ <location filename="mainwindow.cpp" line="362"/>
<source>&amp;File</source>
<translation>文件(&amp;F)</translation>
</message>
<message>
- <location filename="mainwindow.cpp" line="360"/>
+ <location filename="mainwindow.cpp" line="363"/>
<source>&amp;import session...</source>
<translation>导入会放(&amp;i)...</translation>
</message>
<message>
- <location filename="mainwindow.cpp" line="361"/>
+ <location filename="mainwindow.cpp" line="364"/>
<source>hide image requests</source>
<translation>隐藏图片请求</translation>
</message>
<message>
- <location filename="mainwindow.cpp" line="363"/>
+ <location filename="mainwindow.cpp" line="366"/>
<source>hide 304s</source>
<translation>隐藏304</translation>
</message>
<message>
- <location filename="mainwindow.cpp" line="365"/>
+ <location filename="mainwindow.cpp" line="368"/>
<source>show matching sessions only</source>
<translation>只显示匹配规则的请求</translation>
</message>
<message>
- <location filename="mainwindow.cpp" line="367"/>
+ <location filename="mainwindow.cpp" line="370"/>
<source>hide connect tunnels</source>
<translation>隐藏Connect遂道</translation>
</message>
<message>
- <location filename="mainwindow.cpp" line="375"/>
+ <location filename="mainwindow.cpp" line="378"/>
<source>select file to open</source>
<translation>选择文件</translation>
</message>
<message>
- <location filename="mainwindow.cpp" line="578"/>
- <location filename="mainwindow.cpp" line="604"/>
+ <location filename="mainwindow.cpp" line="581"/>
+ <location filename="mainwindow.cpp" line="610"/>
+ <location filename="mainwindow.cpp" line="611"/>
<source>start capture</source>
<translation>开始抓包</translation>
</message>
<message>
- <location filename="mainwindow.cpp" line="587"/>
- <location filename="mainwindow.cpp" line="602"/>
+ <location filename="mainwindow.cpp" line="590"/>
+ <location filename="mainwindow.cpp" line="606"/>
+ <location filename="mainwindow.cpp" line="607"/>
<source>stop capture</source>
<translation>停止抓包</translation>
</message>
@@ -285,12 +287,12 @@ Host: www.alloyteam.com
<context>
<name>RyUpdateChecker</name>
<message>
- <location filename="ryupdatechecker.cpp" line="75"/>
+ <location filename="ryupdatechecker.cpp" line="74"/>
<source>got new version</source>
<translation>有可用新版本</translation>
</message>
<message>
- <location filename="ryupdatechecker.cpp" line="76"/>
+ <location filename="ryupdatechecker.cpp" line="75"/>
<source>old version:%1
new version:%2
update:%3
Please sign in to comment.
Something went wrong with that request. Please try again.