Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
...
  • 2 commits
  • 1 file changed
  • 0 commit comments
  • 1 contributor
Commits on Mar 05, 2014
@beanpole135 beanpole135 Clean up the LP-GUI display of datasets:
Make sure they are in alphabetical order, with any /usr/home/* datasets at the top.
Make sure the number of tickmarks on the snapshot selector is set to one per snapshot (maxing out at 20 tickmarks if more than 20 snapshots)
f5ad808
@beanpole135 beanpole135 Merge branch 'master' of github.com:pcbsd/pcbsd 68b1db6
Showing with 14 additions and 0 deletions.
  1. +14 −0 src-qt4/life-preserver/lp-gui/LPMain.cpp
View
14 src-qt4/life-preserver/lp-gui/LPMain.cpp
@@ -239,6 +239,16 @@ void LPMain::updateTabs(){
QString cds = ui->combo_datasets->currentText();
ui->combo_datasets->clear();
QStringList dslist = POOLDATA.subsets();
+ dslist.sort();
+ //Now move the home directories to the top of the list
+ int moved = 0;
+ for(int i=0; i<dslist.length(); i++){ //make sure it stays in alphabetical order
+ if(dslist[i].startsWith("/usr/home/")){
+ dslist.move(i,moved);
+ moved++;
+ i--; //make sure to not miss any items from moving
+ }
+ }
ui->combo_datasets->addItems(dslist);
int dsin = dslist.indexOf(cds);
if(dsin >= 0){ ui->combo_datasets->setCurrentIndex(dsin); }
@@ -292,6 +302,10 @@ void LPMain::updateDataset(){
if(max < 0){ max = 0; ui->slider_snapshots->setEnabled(false); }
ui->slider_snapshots->setMaximum(max);
ui->slider_snapshots->setValue(max); //most recent snapshot
+ int interval = 1; //one tick per snapshot
+ if( max > 20 ){ interval = max / 20; } //show 20 ticks
+ ui->slider_snapshots->setTickInterval(interval);
+
updateSnapshot();
}else{
ui->slider_snapshots->setEnabled(false);

No commit comments for this range

Something went wrong with that request. Please try again.