Skip to content

Commit

Permalink
fix: click cancel in BiliChoose will clear config file
Browse files Browse the repository at this point in the history
  • Loading branch information
marguerite committed Nov 15, 2014
1 parent c001d12 commit fc4e791
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
10 changes: 8 additions & 2 deletions BiliWidgets.rb
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,14 @@ def clear
def bilidanChoose
userHome = `echo $HOME`.gsub(/\n/,"")
bilidanBin = Qt::FileDialog.getOpenFileName(self, "Please choose your bilidan.py", "#{userHome}", "Python files (*.py)")
@bilidanPath.setText(bilidanBin)
@@configw.put("BilidanPath", bilidanBin)
unless bilidanBin == nil then
if bilidanBin.index("bilidan.py") then
@bilidanPath.setText(bilidanBin)
@@configw.put("BilidanPath", bilidanBin)
else
@messageLabel.setText("[WARN] You didn't choose bilidan.py!")
end
end
end

def biliGoWeb
Expand Down
3 changes: 3 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
0.0.4
* multl URLs support
* fix: click cancel in BilidanChoose will clear biligui.conf
0.0.3
* implement the local config system (BiliConfig.rb)
* you don't have to select Bilidan.py everytime
Expand Down
5 changes: 1 addition & 4 deletions TODO
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
* capture console output in real time and print them on the GUI
* get exitStatus of the command then run next URL (multi URL paste support)
* load URLs from a file and save currently pasted URLs to a file
<s>* decouple BiliDan and BiliGui's locations</s> Done!
* let error message fade out
<s>* config file system to avoid choose bilidan everytime!</s> Done!
* rework the GUI to use tabs for bilibili website

0 comments on commit fc4e791

Please sign in to comment.